1package connect 2 3import ( 4 "github.com/hashicorp/consul/command/flags" 5 "github.com/mitchellh/cli" 6) 7 8func New() *cmd { 9 return &cmd{} 10} 11 12type cmd struct{} 13 14func (c *cmd) Run(args []string) int { 15 return cli.RunResultHelp 16} 17 18func (c *cmd) Synopsis() string { 19 return synopsis 20} 21 22func (c *cmd) Help() string { 23 return flags.Usage(help, nil) 24} 25 26const synopsis = "Interact with Consul Connect" 27const help = ` 28Usage: consul connect <subcommand> [options] [args] 29 30 This command has subcommands for interacting with Consul Connect. 31 32 Here are some simple examples, and more detailed examples are available 33 in the subcommands or the documentation. 34 35 Run the built-in Connect mTLS proxy 36 37 $ consul connect proxy 38 39 For more examples, ask for subcommand help or view the documentation. 40` 41