github.hscsec.cn/hashicorp/consul@v1.4.5/command/operator/autopilot/operator_autopilot.go (about) 1 package autopilot 2 3 import ( 4 "github.com/hashicorp/consul/command/flags" 5 "github.com/mitchellh/cli" 6 ) 7 8 func New() *cmd { 9 return &cmd{} 10 } 11 12 type cmd struct{} 13 14 func (c *cmd) Run(args []string) int { 15 return cli.RunResultHelp 16 } 17 18 func (c *cmd) Synopsis() string { 19 return synopsis 20 } 21 22 func (c *cmd) Help() string { 23 return flags.Usage(help, nil) 24 } 25 26 const synopsis = "Provides tools for modifying Autopilot configuration" 27 const help = ` 28 Usage: consul operator autopilot <subcommand> [options] 29 30 The Autopilot operator command is used to interact with Consul's Autopilot 31 subsystem. The command can be used to view or modify the current configuration. 32 `