(s ...string)
| 58 | } |
| 59 | |
| 60 | func (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 | |
| 68 | func (wsk *Wsk) ListNamespaces() ([]byte, error) { |
| 69 | return wsk.RunCommand("namespace", "list", "--apihost", wsk.Wskprops.APIHost, |
no outgoing calls