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

Method ListCommands

cf/configuration/pluginconfig/plugin_config.go:63–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (c *PluginConfig) ListCommands() []string {
64 plugins := c.Plugins()
65 allCommands := []string{}
66
67 for _, plugin := range plugins {
68 for _, command := range plugin.Commands {
69 allCommands = append(allCommands, command.Name)
70 }
71 }
72
73 return allCommands
74}
75
76func (c *PluginConfig) init() {
77 // only read from disk if it was never read

Callers 1

MainFunction · 0.95

Calls 1

PluginsMethod · 0.95

Tested by

no test coverage detected