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

Method CommandName

util/configv3/plugins_config.go:75–80  ·  view source on GitHub ↗

CommandName returns the name of the plugin. The name is concatenated with alias if alias is specified.

()

Source from the content-addressed store, hash-verified

73// CommandName returns the name of the plugin. The name is concatenated with
74// alias if alias is specified.
75func (c PluginCommand) CommandName() string {
76 if c.Name != "" && c.Alias != "" {
77 return fmt.Sprintf("%s, %s", c.Name, c.Alias)
78 }
79 return c.Name
80}
81
82// PluginUsageDetails contains the usage metadata provided by the plugin
83type PluginUsageDetails struct {

Callers 2

displayPluginCommandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected