MCPcopy
hub / github.com/google/cadvisor / RunCommand

Function RunCommand

integration/runner/runner.go:76–83  ·  view source on GitHub ↗
(cmd string, args ...string)

Source from the content-addressed store, hash-verified

74}
75
76func RunCommand(cmd string, args ...string) error {
77 output, err := exec.Command(cmd, args...).CombinedOutput()
78 if err != nil {
79 return fmt.Errorf("command %q %q failed with error: %v and output: %s", cmd, args, err, output)
80 }
81
82 return nil
83}
84
85func RunSshCommand(cmd string, args ...string) error {
86 if *sshOptions != "" {

Callers 3

RunSshCommandFunction · 0.85
PushAndRunTestsFunction · 0.85
RunFunction · 0.85

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…