MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / RunCommand

Method RunCommand

tests/src/integration/common/wsk.go:60–66  ·  view source on GitHub ↗
(s ...string)

Source from the content-addressed store, hash-verified

58}
59
60func (wsk *Wsk) RunCommand(s ...string) ([]byte, error) {
61 cs := wsk.Arg
62 cs = append(cs, s...)
63 command := exec.Command(wsk.Dir+"/"+wsk.Path, cs...)
64 command.Dir = wsk.Dir
65 return command.CombinedOutput()
66}
67
68func (wsk *Wsk) ListNamespaces() ([]byte, error) {
69 return wsk.RunCommand("namespace", "list", "--apihost", wsk.Wskprops.APIHost,

Callers 15

ListNamespacesMethod · 0.95
TestShowAPIBuildVersionFunction · 0.80
TestRejectAuthCommNoKeyFunction · 0.80
TestHelpUsageInfoCommandFunction · 0.80
TestShowCLIBuildVersionFunction · 0.80
TestShowAPIVersionFunction · 0.80
TestDefaultNamespaceFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestShowAPIBuildVersionFunction · 0.64
TestRejectAuthCommNoKeyFunction · 0.64
TestHelpUsageInfoCommandFunction · 0.64
TestShowCLIBuildVersionFunction · 0.64
TestShowAPIVersionFunction · 0.64
TestDefaultNamespaceFunction · 0.64