(name string, args ...string)
| 31 | ) |
| 32 | |
| 33 | func RunCommandAndGetOutput(name string, args ...string) ([]byte, error) { |
| 34 | cmd := exec.Command(name, args...) |
| 35 | return cmd.CombinedOutput() |
| 36 | } |
| 37 | |
| 38 | func RunCommandWithTimeoutAndGetOutput(timeout time.Duration, name string, args ...string) ([]byte, error) { |
| 39 | ctx, cancel := context.WithTimeout(context.Background(), timeout) |
no outgoing calls
no test coverage detected