Run executes the given command string, waiting for the command to finish, handling the given arguments appropriately. If there is any error, it adds it to the shell, and triggers CancelExecution. It forwards output to [exec.Config.Stdout] and [exec.Config.Stderr] appropriately.
(cmd any, args ...any)
| 9 | // If there is any error, it adds it to the shell, and triggers CancelExecution. |
| 10 | // It forwards output to [exec.Config.Stdout] and [exec.Config.Stderr] appropriately. |
| 11 | func (sh *Shell) Run(cmd any, args ...any) { |
| 12 | sh.Exec(false, false, false, cmd, args...) |
| 13 | } |
| 14 | |
| 15 | // RunErrOK executes the given command string, waiting for the command to finish, |
| 16 | // handling the given arguments appropriately. |