Prioritize config in home directory over /etc

pull/12/head
Arsen Musayelyan 12 months ago
parent 3cfcdb7a01
commit 0d70dd9b11
  1. 2
      main.go

@ -36,8 +36,8 @@ func init() {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
// Set config settings
viper.AddConfigPath("/etc")
viper.AddConfigPath("$HOME/.config")
viper.AddConfigPath("/etc")
viper.SetConfigName("itd")
viper.SetConfigType("toml")
viper.WatchConfig()

Loading…
Cancel
Save