[#747] neofs-adm: Support ~ for paths in config

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-08-04 20:47:58 +03:00 committed by Alex Vanin
parent b5cadff2c3
commit aa0955f15d
3 changed files with 26 additions and 2 deletions

View file

@ -36,7 +36,7 @@ func generateAlphabetCreds(cmd *cobra.Command, args []string) error {
return errors.New("size must be > 0")
}
walletDir := viper.GetString(alphabetWalletsFlag)
walletDir := config.ResolveHomePath(viper.GetString(alphabetWalletsFlag))
pwds, err := initializeWallets(walletDir, int(size))
if err != nil {
return err