()
| 48 | } |
| 49 | |
| 50 | func 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 | |
| 67 | func RunPlugin(plugin configv3.Plugin) error { |
| 68 | _, commandUI, err := getCFConfigAndCommandUIObjects() |
nothing calls this directly
no test coverage detected