WithOutputStream sets a cli output stream.
(out io.Writer)
| 61 | |
| 62 | // WithOutputStream sets a cli output stream. |
| 63 | func WithOutputStream(out io.Writer) CLIOption { |
| 64 | return func(cli *DockerCli) error { |
| 65 | cli.out = streams.NewOut(out) |
| 66 | return nil |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // WithErrorStream sets a cli error stream. |
| 71 | func WithErrorStream(err io.Writer) CLIOption { |
no outgoing calls
searching dependent graphs…