Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileName = "config.yaml" HistoryFileName = "cli.hist" )
Variables ¶
View Source
var ( NoSelectionErr = errors.New("no context selected") NotFoundErr = errors.New("context not found") ContextAlreadyExistErr = errors.New("context already exists") TokenExpiredErr = errors.New("token expired") )
View Source
var File string
Functions ¶
func HistoryFile ¶
Types ¶
type Config ¶
type Config struct {
Current string `yaml:"current"`
Keys map[string]APIKey `yaml:"keys"`
Tokens map[string]Token `yaml:"tokens"`
}
func Load ¶
Load loads the CLI configuration, and if the config doesn't exist, it returns an empty config.
Click to show internal directories.
Click to hide internal directories.