look for $HOME/.config for config in addition to $XDG_CONFIG_HOME/
parent
f33dff8772
commit
ce8bf37f15
|
|
@ -177,6 +177,7 @@ func configureViper() {
|
|||
viper.SetConfigType("json")
|
||||
viper.AddConfigPath("$HOME")
|
||||
viper.AddConfigPath(fmt.Sprintf("$XDG_CONFIG_HOME/%s", appName))
|
||||
viper.AddConfigPath(fmt.Sprintf("$HOME/.config/%s", appName))
|
||||
viper.SetEnvPrefix(strings.ToUpper(appName))
|
||||
viper.AutomaticEnv()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue