Skip to content

Commit

Permalink
chore(config): Move config file to subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Feb 24, 2024
1 parent 1a620ff commit 83b3816
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ func initLog(cmd *cobra.Command) {
}

func initConfig() error {
viper.SetConfigName("kubedb")
viper.SetConfigType("yaml")
viper.AddConfigPath(filepath.Join("$HOME", ".config"))
viper.AddConfigPath("$HOME")
viper.AddConfigPath(filepath.Join("$HOME", ".config", "kubedb"))
viper.AddConfigPath(filepath.Join("etc", "kubedb"))

viper.AutomaticEnv()
Expand Down

0 comments on commit 83b3816

Please sign in to comment.