(name string, arg ...string)
| 11 | ) |
| 12 | |
| 13 | func CommandTTY(name string, arg ...string) *exec.Cmd { |
| 14 | cmd := exec.Command(name, arg...) |
| 15 | cmd.Stdin = os.Stdin |
| 16 | cmd.Stdout = os.Stdout |
| 17 | cmd.Stderr = os.Stderr |
| 18 | return cmd |
| 19 | } |
| 20 | |
| 21 | // CommandTTYWithBuffer returns a command with stdin, stdout, and stderr |
| 22 | // and a buffer that contains stdout and stderr combined. |
no test coverage detected