mirror of
https://github.com/Threnklyn/zeit.git
synced 2026-05-18 21:03:30 +02:00
Opening Viper for all formats
This commit is contained in:
@@ -76,12 +76,10 @@ func initConfig() {
|
||||
home, err := os.UserHomeDir()
|
||||
cobra.CheckErr(err)
|
||||
|
||||
// TODO: Discuss if toml is also needed - Config Type can only be set one per block, supporting toml would need a complete new block
|
||||
viper.AddConfigPath("$XDG_CONFIG_HOME")
|
||||
viper.AddConfigPath("$XDG_CONFIG_HOME/zeit")
|
||||
viper.AddConfigPath(home + "/.config")
|
||||
viper.AddConfigPath(home + "/.config/zeit")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.SetConfigName("zeit")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user