(cmd string, args ...string)
| 74 | } |
| 75 | |
| 76 | func 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 | |
| 85 | func RunSshCommand(cmd string, args ...string) error { |
| 86 | if *sshOptions != "" { |
no test coverage detected
searching dependent graphs…