Exec starts executing a shell command in given path, it tracks corresponding process and timeout.
(timeout time.Duration, dir, desc, cmdName string, args ...string)
| 72 | |
| 73 | // Exec starts executing a shell command in given path, it tracks corresponding process and timeout. |
| 74 | func ExecDir(timeout time.Duration, dir, desc, cmdName string, args ...string) (string, string, error) { |
| 75 | return ExecDirEnv(timeout, dir, nil, desc, cmdName, args...) |
| 76 | } |
| 77 | |
| 78 | // ExecDirEnv is the same as ExecDir but allows appending additional environment |
| 79 | // variables to the child process. Pass nil for env to inherit the parent |
no test coverage detected