MCPcopy
hub / github.com/cloudfoundry/cli / CommandUsage

Method CommandUsage

cf/commandregistry/registry.go:139–143  ·  view source on GitHub ↗
(cmdName string)

Source from the content-addressed store, hash-verified

137}
138
139func (r *registry) CommandUsage(cmdName string) string {
140 cmd := r.FindCommand(cmdName)
141
142 return CLICommandUsagePresenter(cmd).Usage()
143}
144
145type usagePresenter struct {
146 cmd Command

Callers 15

ExecuteMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
ExecuteMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80
RequirementsMethod · 0.80

Calls 3

FindCommandMethod · 0.95
CLICommandUsagePresenterFunction · 0.85
UsageMethod · 0.65

Tested by

no test coverage detected