ExecWithOpts runs a single external command with the given options.
(argv []string, opts CmdOpts)
| 39 | |
| 40 | // ExecWithOpts runs a single external command with the given options. |
| 41 | func ExecWithOpts(argv []string, opts CmdOpts) error { |
| 42 | _, err := pipelineInternal([][]string{argv}, []CmdOpts{opts}) |
| 43 | return err |
| 44 | } |
| 45 | |
| 46 | // Pipeline runs several commands such that the output of one command becomes the input of the next. |
| 47 | // The first argument should be an two-dimensional array containing the commands. |