2017-02-10 01:58:20 +00:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
"github.com/mitchellh/cli"
|
|
|
|
)
|
|
|
|
|
|
|
|
type OperatorCommand struct {
|
|
|
|
Meta
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f *OperatorCommand) Help() string {
|
|
|
|
helpText := `
|
|
|
|
Usage: nomad operator <subcommand> [options]
|
|
|
|
|
|
|
|
Provides cluster-level tools for Nomad operators, such as interacting with
|
|
|
|
the Raft subsystem. NOTE: Use this command with extreme caution, as improper
|
|
|
|
use could lead to a Nomad outage and even loss of data.
|
|
|
|
|
2018-03-21 21:04:54 +00:00
|
|
|
Please see the individual subcommand help for detailed usage information.
|
2017-02-10 01:58:20 +00:00
|
|
|
`
|
|
|
|
return strings.TrimSpace(helpText)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (f *OperatorCommand) Synopsis() string {
|
|
|
|
return "Provides cluster-level tools for Nomad operators"
|
|
|
|
}
|
|
|
|
|
2018-04-18 16:02:11 +00:00
|
|
|
func (f *OperatorCommand) Name() string { return "operator" }
|
|
|
|
|
2017-02-10 01:58:20 +00:00
|
|
|
func (f *OperatorCommand) Run(args []string) int {
|
|
|
|
return cli.RunResultHelp
|
|
|
|
}
|