[#1590] adm: Accept many accounts in proxy-* commands
All checks were successful
Tests and linters / Run gofumpt (push) Successful in 38s
Vulncheck / Vulncheck (push) Successful in 1m9s
Pre-commit hooks / Pre-commit (push) Successful in 1m27s
Tests and linters / Tests (push) Successful in 2m1s
Tests and linters / Staticcheck (push) Successful in 2m19s
Tests and linters / Tests with -race (push) Successful in 2m43s
Tests and linters / gopls check (push) Successful in 2m50s
Tests and linters / Lint (push) Successful in 3m9s
Build / Build Components (push) Successful in 1m25s

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2024-12-28 14:37:35 +03:00 committed by Evgenii Stratonikov
parent cddcd73f04
commit dc410fca90
2 changed files with 23 additions and 12 deletions

View file

@ -29,14 +29,14 @@ var (
func initProxyAddAccount() {
AddAccountCmd.Flags().StringP(commonflags.EndpointFlag, commonflags.EndpointFlagShort, "", commonflags.EndpointFlagDesc)
AddAccountCmd.Flags().String(accountAddressFlag, "", "Wallet address string")
AddAccountCmd.Flags().StringArray(accountAddressFlag, nil, "Wallet address string")
_ = AddAccountCmd.MarkFlagRequired(accountAddressFlag)
AddAccountCmd.Flags().String(commonflags.AlphabetWalletsFlag, "", commonflags.AlphabetWalletsFlagDesc)
}
func initProxyRemoveAccount() {
RemoveAccountCmd.Flags().StringP(commonflags.EndpointFlag, commonflags.EndpointFlagShort, "", commonflags.EndpointFlagDesc)
RemoveAccountCmd.Flags().String(accountAddressFlag, "", "Wallet address string")
RemoveAccountCmd.Flags().StringArray(accountAddressFlag, nil, "Wallet address string")
_ = AddAccountCmd.MarkFlagRequired(accountAddressFlag)
RemoveAccountCmd.Flags().String(commonflags.AlphabetWalletsFlag, "", commonflags.AlphabetWalletsFlagDesc)
}