diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:07:45 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-10 22:32:13 +1100 |
commit | de5bcb8b9c65e63a992ce278e63f0f8e31a57969 (patch) | |
tree | 7df962782d7345e3b002d4578fa152e5507d2ad1 /pkg/config/app_config.go | |
parent | 98666186ee3365cd9b65df7a9a7ed4f430b77d50 (diff) |
add some shameless self promotion
Diffstat (limited to 'pkg/config/app_config.go')
-rw-r--r-- | pkg/config/app_config.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 50690c8c5..d0294de01 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -37,7 +37,7 @@ type AppConfigurer interface { GetUserConfig() *viper.Viper GetUserConfigDir() string GetAppState() *AppState - WriteToUserConfig(string, string) error + WriteToUserConfig(string, interface{}) error SaveAppState() error LoadAppState() error SetIsNewRepo(bool) @@ -192,7 +192,7 @@ func LoadAndMergeFile(v *viper.Viper, filename string) (string, error) { } // WriteToUserConfig adds a key/value pair to the user's config and saves it -func (c *AppConfig) WriteToUserConfig(key, value string) error { +func (c *AppConfig) WriteToUserConfig(key string, value interface{}) error { // reloading the user config directly (without defaults) so that we're not // writing any defaults back to the user's config v, _, err := LoadConfig("config", false) @@ -263,6 +263,7 @@ update: method: prompt # can be: prompt | background | never days: 14 # how often a update is checked for reporting: 'undetermined' # one of: 'on' | 'off' | 'undetermined' +splashUpdatesIndex: 0 confirmOnQuit: false `) } |