Output executes the given command string, handling the given arguments appropriately. If there is any error, it adds it to the shell. It returns the stdout as a string and forwards stderr to [exec.Config.Stderr] appropriately.
(cmd any, args ...any)
| 33 | // appropriately. If there is any error, it adds it to the shell. It returns |
| 34 | // the stdout as a string and forwards stderr to [exec.Config.Stderr] appropriately. |
| 35 | func (sh *Shell) Output(cmd any, args ...any) string { |
| 36 | return sh.Exec(false, false, true, cmd, args...) |
| 37 | } |
| 38 | |
| 39 | // OutputErrOK executes the given command string, handling the given arguments |
| 40 | // appropriately. If there is any error, it adds it to the shell. It returns |