github.com/kjdelisle/consul@v1.4.5/command/services/services.go (about) 1 package services 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 = "Interact with services" 27 const help = ` 28 Usage: consul services <subcommand> [options] [args] 29 30 This command has subcommands for interacting with services. The subcommands 31 default to working with services registered with the local agent. Please see 32 the "consul catalog" command for interacting with the entire catalog. 33 34 For more examples, ask for subcommand help or view the documentation. 35 `