Usage reports incorrect command usage
(message string)
| 83 | |
| 84 | // Usage reports incorrect command usage |
| 85 | func (c *BaseCommand) Usage(message string) { |
| 86 | ui.Say(terminal.FailureColor("FAILED")) |
| 87 | ui.Say("Incorrect usage. %s\n", message) |
| 88 | _, err := c.cliConnection.CliCommand("help", c.name) |
| 89 | if err != nil { |
| 90 | ui.Failed("Could not display help: %s", err) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // Execute executes the command |
| 95 | func (c *BaseCommand) Execute(args []string) ExecutionStatus { |