open-consul/command/operraft/operator_raft.go

32 lines
566 B
Go
Raw Normal View History

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
}