forked from Elara6331/itd
Prioritize config in home directory over /etc
This commit is contained in:
parent
3cfcdb7a01
commit
0d70dd9b11
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