Documentation
¶
Overview ¶
Package config contains helper methods for client side config management (`~/.micro/config.json` file). It uses the `JSONValues` helper
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Commands defines a set of commands for local config Commands = []*cli.Command{ { Name: "get", Usage: "Get a value by specifying [key] as an arg", Action: get, }, { Name: "set", Usage: "Set a key-val using [key] [value] as args", Action: set, }, { Name: "delete", Usage: "Delete a value using [key] as an arg", Action: del, }, } )
View Source
var ( // File is the filepath to the config file that // contains all user configuration File = filepath.Join(user.Dir, "config.json") )
Functions ¶
func WriteVersion ¶
WriteVersion will write a version update to a file ./micro/version. This indicates the current version and the last time we updated the binary. Its only used where self update is
Types ¶
Click to show internal directories.
Click to hide internal directories.