Rename raft configuration command to list-peers and make output easier to read (#8484)

* Make the output of raft configuration easier to read

* Rename raft configuration sub command to list-peers

* Update command/operator_raft_listpeers.go

Co-Authored-By: Calvin Leung Huang <cleung2010@gmail.com>

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
This commit is contained in:
Brian Kassouf
2020-03-06 14:40:50 -08:00
committed by GitHub
parent 80a811bf37
commit ccb0dd7c05
5 changed files with 106 additions and 76 deletions

View File

@@ -357,8 +357,8 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
BaseCommand: getBaseCommand(),
}, nil
},
"operator raft configuration": func() (cli.Command, error) {
return &OperatorRaftConfigurationCommand{
"operator raft list-peers": func() (cli.Command, error) {
return &OperatorRaftListPeersCommand{
BaseCommand: getBaseCommand(),
}, nil
},