Run starts and waits for the commands in the pipeline.
(ctx context.Context)
| 264 | |
| 265 | // Run starts and waits for the commands in the pipeline. |
| 266 | func (p *Pipeline) Run(ctx context.Context) error { |
| 267 | if err := p.Start(ctx); err != nil { |
| 268 | return err |
| 269 | } |
| 270 | |
| 271 | return p.Wait() |
| 272 | } |