Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Initialize creates the directory and/or file with defaults for the application's configuration settings
func ParseAndUpdate ¶
ParseAndUpdate parses the viper settings as a pls settings struct and updates the config file
func UpdatePrompt ¶
UpdatePrompt lets the user select from a dropdown of config keys for which value to update
Types ¶
type Settings ¶
type Settings struct { GitToken string `yaml:"git_token"` GitUsername string `yaml:"git_username"` GitEnterpriseToken string `yaml:"ghe_token"` GitEnterpriseUsername string `yaml:"ghe_username"` GitEnterpriseHostname string `yaml:"ghe_hostname"` Name string `yaml:"name"` DefaultEditor string `yaml:"default_editor"` WebShortcuts map[string]string `yaml:"webshort"` DefaultCodeDir string `yaml:"default_codepath"` // contains filtered or unexported fields }
Settings represent the default settings for pls
func (*Settings) UpdateSettings ¶
UpdateSettings checks for pls config values that have already been set and ensures they're preserved when updating configs
Click to show internal directories.
Click to hide internal directories.