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

Function PluginCommandNames

util/plugin/plugin.go:50–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func PluginCommandNames() []string {
51 var names []string
52
53 config, configErr := configv3.LoadConfig()
54 if configErr != nil {
55 return names
56 }
57
58 for _, plugin := range config.Plugins() {
59 for _, pluginCommand := range plugin.Commands {
60 names = append(names, pluginCommand.Name)
61 }
62 }
63
64 return names
65}
66
67func RunPlugin(plugin configv3.Plugin) error {
68 _, commandUI, err := getCFConfigAndCommandUIObjects()

Callers

nothing calls this directly

Calls 2

LoadConfigFunction · 0.92
PluginsMethod · 0.65

Tested by

no test coverage detected