You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/command/operator_raft.go

33 lines
654 B

package command
import (
"strings"
"github.com/mitchellh/cli"
)
type OperatorRaftCommand struct {
BaseCommand
}
func (c *OperatorRaftCommand) Run(args []string) int {
return cli.RunResultHelp
}
func (c *OperatorRaftCommand) Help() string {
helpText := `
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 strings.TrimSpace(helpText)
}
func (c *OperatorRaftCommand) Synopsis() string {
return "Provides cluster-level tools for Consul operators"
}