WithDir sets the default directory for running external commands.
(dir string)
| 66 | |
| 67 | // WithDir sets the default directory for running external commands. |
| 68 | func WithDir(dir string) Option { |
| 69 | return func(p *Pipeline) { |
| 70 | p.env.Dir = dir |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | // WithStdin assigns stdin to the first command in the pipeline. |
| 75 | func WithStdin(stdin io.Reader) Option { |
no outgoing calls