MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / Usage

Method Usage

commands/base_command.go:85–92  ·  view source on GitHub ↗

Usage reports incorrect command usage

(message string)

Source from the content-addressed store, hash-verified

83
84// Usage reports incorrect command usage
85func (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
95func (c *BaseCommand) Execute(args []string) ExecutionStatus {

Callers 1

ExecuteMethod · 0.95

Calls 2

SayFunction · 0.92
FailedFunction · 0.92

Tested by

no test coverage detected