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

Method Run

fixtures/plugins/test_2/test_2.go:18–26  ·  view source on GitHub ↗
(cliConnection plugin.CliConnection, args []string)

Source from the content-addressed store, hash-verified

16type Test2 struct{}
17
18func (c *Test2) Run(cliConnection plugin.CliConnection, args []string) {
19 if args[0] == "test_2_cmd1" {
20 theFirstCmd()
21 } else if args[0] == "test_2_cmd2" {
22 theSecondCmd()
23 } else if args[0] == "CLI-MESSAGE-UNINSTALL" {
24 uninstall(cliConnection)
25 }
26}
27
28func (c *Test2) GetMetadata() plugin.PluginMetadata {
29 return plugin.PluginMetadata{

Callers

nothing calls this directly

Calls 3

uninstallFunction · 0.85
theFirstCmdFunction · 0.70
theSecondCmdFunction · 0.70

Tested by

no test coverage detected