(ctx context.Context)
| 171 | } |
| 172 | |
| 173 | func (p *Pipeline) Output(ctx context.Context) ([]byte, error) { |
| 174 | var buf bytes.Buffer |
| 175 | p.stdout = nopWriteCloser{&buf} |
| 176 | err := p.Run(ctx) |
| 177 | return buf.Bytes(), err |
| 178 | } |
| 179 | |
| 180 | // Wait waits for each stage in the pipeline to exit. |
| 181 | func (p *Pipeline) Wait() error { |