(name string, args ...string)
| 1298 | } |
| 1299 | |
| 1300 | func startCommand(name string, args ...string) (string, error) { |
| 1301 | command := exec.Command(name, args...) |
| 1302 | if len(workingDir) > 0 { |
| 1303 | command.Dir = workingDir |
| 1304 | } |
| 1305 | commandString := strings.Join(command.Args, " ") |
| 1306 | say.Debug("Starting command " + commandString) |
| 1307 | err := command.Start() |
| 1308 | return commandString, err |
| 1309 | } |
| 1310 | |
| 1311 | var Exit = func(code int) { |
| 1312 | os.Exit(code) |
no test coverage detected