github.com/manicqin/nomad@v0.9.5/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    Please see the individual subcommand help for detailed usage information.
    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) Name() string { return "operator" }
    31  
    32  func (f *OperatorCommand) Run(args []string) int {
    33  	return cli.RunResultHelp
    34  }