Command returns a pipeline `Stage` based on the specified external `command`, run with the given command-line `args`. Its stdin and stdout are handled as usual, and its stderr is collected and included in any `*exec.ExitError` that the command might emit.
(command string, args ...string)
| 33 | // stdout are handled as usual, and its stderr is collected and |
| 34 | // included in any `*exec.ExitError` that the command might emit. |
| 35 | func Command(command string, args ...string) Stage { |
| 36 | if len(command) == 0 { |
| 37 | panic("attempt to create command with empty command") |
| 38 | } |
| 39 | |
| 40 | cmd := exec.Command(command, args...) |
| 41 | return CommandStage(command, cmd) |
| 42 | } |
| 43 | |
| 44 | // Command returns a pipeline `Stage` with the name `name`, based on |
| 45 | // the specified `cmd`. Its stdin and stdout are handled as usual, and |