ExecuteOutput executes the command quietly and returns its combined stdout/stderr as a string.
()
| 74 | |
| 75 | // ExecuteOutput executes the command quietly and returns its combined stdout/stderr as a string. |
| 76 | func (e *executor) ExecuteOutput() (string, error) { |
| 77 | var output fileio.LockedBuffer |
| 78 | err := e.executeWithRetry(&output) |
| 79 | return strings.TrimSpace(output.String()), err |
| 80 | } |
| 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) { |