1package command
2
3import (
4	"strings"
5
6	"github.com/mitchellh/cli"
7)
8
9type OperatorCommand struct {
10	Meta
11}
12
13func (f *OperatorCommand) Help() string {
14	helpText := `
15Usage: nomad operator <subcommand> [options]
16
17  Provides cluster-level tools for Nomad operators, such as interacting with
18  the Raft subsystem. NOTE: Use this command with extreme caution, as improper
19  use could lead to a Nomad outage and even loss of data.
20
21  Please see the individual subcommand help for detailed usage information.
22`
23	return strings.TrimSpace(helpText)
24}
25
26func (f *OperatorCommand) Synopsis() string {
27	return "Provides cluster-level tools for Nomad operators"
28}
29
30func (f *OperatorCommand) Name() string { return "operator" }
31
32func (f *OperatorCommand) Run(args []string) int {
33	return cli.RunResultHelp
34}
35