github.hscsec.cn/hashicorp/consul@v1.4.5/command/operator/raft/operator_raft.go (about) 1 package raft 2 3 import ( 4 "github.com/hashicorp/consul/command/flags" 5 "github.com/mitchellh/cli" 6 ) 7 8 func New() *cmd { 9 return &cmd{} 10 } 11 12 type cmd struct{} 13 14 func (c *cmd) Run(args []string) int { 15 return cli.RunResultHelp 16 } 17 18 func (c *cmd) Synopsis() string { 19 return synopsis 20 } 21 22 func (c *cmd) Help() string { 23 return flags.Usage(help, nil) 24 } 25 26 const synopsis = "Provides cluster-level tools for Consul operators" 27 const help = ` 28 Usage: consul operator raft <subcommand> [options] 29 30 The Raft operator command is used to interact with Consul's Raft subsystem. The 31 command can be used to verify Raft peers or in rare cases to recover quorum by 32 removing invalid peers. 33 `