[#626] The default config file location

Signed-off-by: Tivizi Jing <tivizi@163.com>
remotes/fyrchik/meta-pebble
tivizi 2021-06-25 08:23:10 +08:00 committed by Alex Vanin
parent 2da5a309f7
commit 1f461baf0b
1 changed files with 1 additions and 2 deletions

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")
}