ExecuteOutputLive executes the command with live terminal output and returns its combined stdout/stderr as a string.
()
| 81 | |
| 82 | // ExecuteOutputLive executes the command with live terminal output and returns its combined stdout/stderr as a string. |
| 83 | func (e *executor) ExecuteOutputLive() (string, error) { |
| 84 | var output fileio.LockedBuffer |
| 85 | err := e.executeWithRetry(outputCapture{output: &output}) |
| 86 | return strings.TrimSpace(output.String()), err |
| 87 | } |
| 88 | |
| 89 | // Execute runs the command with live terminal output and no returned output. |
| 90 | func (e *executor) Execute() error { |
no test coverage detected