From 1f461baf0b74d41b5c9fd6d3c75ce32a512544c1 Mon Sep 17 00:00:00 2001 From: tivizi Date: Fri, 25 Jun 2021 08:23:10 +0800 Subject: [PATCH] [#626] The default config file location Signed-off-by: Tivizi Jing --- cmd/neofs-cli/modules/root.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/neofs-cli/modules/root.go b/cmd/neofs-cli/modules/root.go index c325380f..48672182 100644 --- a/cmd/neofs-cli/modules/root.go +++ b/cmd/neofs-cli/modules/root.go @@ -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") }