Prioritize config in home directory over /etc
This commit is contained in:
parent
b68e81cf8d
commit
43ea68e62f
2
main.go
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…
Reference in New Issue
Block a user