Opening Viper for all formats

This commit is contained in:
Martin (Schretzi) Fuchsluger
2025-02-13 21:15:25 +01:00
parent f1326734e5
commit a2da1daa2c
-2
View File
@@ -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")
}