[#626] The default config file location

Signed-off-by: Tivizi Jing <tivizi@163.com>
This commit is contained in:
tivizi 2021-06-25 08:23:10 +08:00 committed by Alex Vanin
parent 2da5a309f7
commit 1f461baf0b

View file

@ -142,9 +142,8 @@ func initConfig() {
os.Exit(1)
}
// Search config in `$HOME/.config/neofs-cli/` or `$PWD` with name "config.yaml"
// Search config in `$HOME/.config/neofs-cli/` with name "config.yaml"
viper.AddConfigPath(filepath.Join(home, ".config", "neofs-cli"))
viper.AddConfigPath(".")
viper.SetConfigName("config")
viper.SetConfigType("yaml")
}