//
pkg.gl
Category
github.com/jish/cli
config
package
1.7.1
Repository:
https://github.com/jish/cli.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
7
Dependents
0
Files
209 SLOC
#
Functions
FilePath
FilePath returns the path to the config file.
Home
Home returns the user's canonical home directory.
New
New returns a new config.
Read
Read loads the config from the stored JSON file.
#
Constants
DirExercises
DirExercises is the default name of the directory for active users.
File
File is the default name of the JSON file where the config written.
LegacyFile
LegacyFile is the name of the original config file.
#
Structs
Config
Config represents the settings for particular user.