MCPcopy Index your code
hub / github.com/cloudfoundry/cli / PluginCommands

Method PluginCommands

util/configv3/plugins_config.go:43–48  ·  view source on GitHub ↗

PluginCommands returns the plugin's commands sorted by command name.

()

Source from the content-addressed store, hash-verified

41
42// PluginCommands returns the plugin's commands sorted by command name.
43func (p Plugin) PluginCommands() []PluginCommand {
44 sort.Slice(p.Commands, func(i, j int) bool {
45 return strings.ToLower(p.Commands[i].Name) < strings.ToLower(p.Commands[j].Name)
46 })
47 return p.Commands
48}
49
50// PluginVersion is the plugin version information
51type PluginVersion struct {

Callers 3

displayPluginCommandsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected