WithStdout assigns stdout to the last command in the pipeline.
(stdout io.Writer)
| 80 | |
| 81 | // WithStdout assigns stdout to the last command in the pipeline. |
| 82 | func WithStdout(stdout io.Writer) Option { |
| 83 | return func(p *Pipeline) { |
| 84 | p.stdout = nopWriteCloser{stdout} |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | // WithStdoutCloser assigns stdout to the last command in the |
| 89 | // pipeline, and closes stdout when it's done. |
no outgoing calls