Pipeline runs several commands such that the output of one command becomes the input of the next. The first argument should be an two-dimensional array containing the commands. TODO: allow capturing output, sending to terminal, etc
(cmds [][]string)
| 47 | // The first argument should be an two-dimensional array containing the commands. |
| 48 | // TODO: allow capturing output, sending to terminal, etc |
| 49 | func Pipeline(cmds [][]string) (string, error) { |
| 50 | return pipelineInternal(cmds, nil) |
| 51 | } |
| 52 | |
| 53 | // piplineInternal takes a list of commands and a list of options (one for each). |
| 54 | // If opts is nil, all commands should be run with the default options. |