mirror of https://github.com/status-im/consul.git
32 lines
566 B
Go
32 lines
566 B
Go
package operraft
|
|
|
|
import (
|
|
"github.com/mitchellh/cli"
|
|
)
|
|
|
|
func New() *cmd {
|
|
return &cmd{}
|
|
}
|
|
|
|
type cmd struct{}
|
|
|
|
func (c *cmd) Run(args []string) int {
|
|
return cli.RunResultHelp
|
|
}
|
|
|
|
func (c *cmd) Synopsis() string {
|
|
return "Provides cluster-level tools for Consul operators"
|
|
}
|
|
|
|
func (c *cmd) Help() string {
|
|
s := `
|
|
Usage: consul operator raft <subcommand> [options]
|
|
|
|
The Raft operator command is used to interact with Consul's Raft subsystem. The
|
|
command can be used to verify Raft peers or in rare cases to recover quorum by
|
|
removing invalid peers.
|
|
|
|
`
|
|
return s
|
|
}
|