[#1883] cli/shards: Exclude degraded-read-write mode from help

The mode is not expected to be used by the user. It is supported only
for developers.

Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
Leonard Lyubich 2022-10-15 11:57:06 +04:00 committed by fyrchik
parent eb206d6e59
commit 3c6daa2995
2 changed files with 57 additions and 15 deletions

View file

@ -108,10 +108,9 @@ func prettyPrintShards(cmd *cobra.Command, ii []*control.ShardInfo) {
}
func shardModeToString(m control.ShardMode) string {
for strMode, mode := range mShardModes {
if mode == m {
return strMode
}
strMode, ok := lookUpShardModeString(m)
if ok {
return strMode
}
return "unknown"