-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: Use
MarkFlagsOneRequired
for mutex but required flags
The feature came with github.com/spf13/[email protected]. We don't need to do manual checks with it. For example, following command result changed from: ``` $ neofs-cli bearer create -i 1 -n 2 --out b -o c expiration epoch or lifetime period is required ``` to ``` Error: at least one of the flags in the group [expire-at lifetime] is required ``` Ret code remains = 1. Below are command checklists. CLI: * `bearer create`; * `control shards evacuate`; * `control shards flush-cache`; * `control shards set-mode`; * `object lock`; * `session create`; * `storagegroup put`. ADM: * `morph verified-nodes-domain set-access-list`; * `morph refill-gas`. Closes #2595. Signed-off-by: Leonard Lyubich <[email protected]>
- Loading branch information
1 parent
14b650c
commit 9c077c1
Showing
9 changed files
with
10 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters