WithInputStream sets a cli input stream.
(in io.ReadCloser)
| 53 | |
| 54 | // WithInputStream sets a cli input stream. |
| 55 | func WithInputStream(in io.ReadCloser) CLIOption { |
| 56 | return func(cli *DockerCli) error { |
| 57 | cli.in = streams.NewIn(in) |
| 58 | return nil |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // WithOutputStream sets a cli output stream. |
| 63 | func WithOutputStream(out io.Writer) CLIOption { |
no outgoing calls
searching dependent graphs…