github.com/jrxfive/nomad@v0.6.1-0.20170802162750-1fef470e89bf/command/operator.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type OperatorCommand struct { 10 Meta 11 } 12 13 func (f *OperatorCommand) Help() string { 14 helpText := ` 15 Usage: 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 Run nomad operator <subcommand> with no arguments for help on that subcommand. 22 ` 23 return strings.TrimSpace(helpText) 24 } 25 26 func (f *OperatorCommand) Synopsis() string { 27 return "Provides cluster-level tools for Nomad operators" 28 } 29 30 func (f *OperatorCommand) Run(args []string) int { 31 return cli.RunResultHelp 32 }