configwrite

package
v1.42.4-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(v *viper.Viper) (int, error)

Run loads wakatime config file and call Write().

func Write

func Write(v *viper.Viper, w ini.Writer) error

Write writes value(s) to given config key(s) and persist on disk.

Types

type Params

type Params struct {
	Section  string
	KeyValue map[string]string
}

Params contains config write parameters.

func LoadParams

func LoadParams(v *viper.Viper) (Params, error)

LoadParams loads needed data from the configuration file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL