(name string, args ...string)
| 1241 | } |
| 1242 | |
| 1243 | func runCommandSilent(name string, args ...string) (string, string, error) { |
| 1244 | command := exec.Command(name, args...) |
| 1245 | if len(workingDir) > 0 { |
| 1246 | command.Dir = workingDir |
| 1247 | } |
| 1248 | commandString := strings.Join(command.Args, " ") |
| 1249 | say.Debug("Running command <" + commandString + "> in silent mode, capturing combined output") |
| 1250 | outputBytes, err := command.CombinedOutput() |
| 1251 | output := string(outputBytes) |
| 1252 | say.Debug(output) |
| 1253 | return commandString, output, err |
| 1254 | } |
| 1255 | |
| 1256 | func runCommand(name string, args ...string) (string, string, error) { |
| 1257 | command := exec.Command(name, args...) |
no test coverage detected