github.com/djenriquez/nomad-1@v0.8.1/command/operator_autopilot.go (about) 1 package command 2 3 import ( 4 "strings" 5 6 "github.com/mitchellh/cli" 7 ) 8 9 type OperatorAutopilotCommand struct { 10 Meta 11 } 12 13 func (c *OperatorAutopilotCommand) Run(args []string) int { 14 return cli.RunResultHelp 15 } 16 17 func (c *OperatorAutopilotCommand) Synopsis() string { 18 return "Provides tools for modifying Autopilot configuration" 19 } 20 21 func (c *OperatorAutopilotCommand) Help() string { 22 helpText := ` 23 Usage: nomad operator autopilot <subcommand> [options] 24 25 This command groups subcommands for interacting with Nomad's Autopilot 26 subsystem. Autopilot provides automatic, operator-friendly management of Nomad 27 servers. The command can be used to view or modify the current Autopilot 28 configuration. For a full guide see: https://www.nomadproject.io/guides/autopilot.html 29 30 Get the current Autopilot configuration: 31 32 $ nomad operator autopilot get-config 33 34 Set a new Autopilot configuration, enabling automatic dead server cleanup: 35 36 $ nomad operator autopilot set-config -cleanup-dead-servers=true 37 38 Please see the individual subcommand help for detailed usage information. 39 ` 40 return strings.TrimSpace(helpText) 41 }