WithStreams sets custom I/O streams for output and interaction
(out, err io.Writer, in io.Reader)
| 96 | |
| 97 | // WithStreams sets custom I/O streams for output and interaction |
| 98 | func WithStreams(out, err io.Writer, in io.Reader) Option { |
| 99 | return func(s *composeService) error { |
| 100 | s.outStream = out |
| 101 | s.errStream = err |
| 102 | s.inStream = in |
| 103 | return nil |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | // WithOutputStream sets a custom output stream |
| 108 | func WithOutputStream(out io.Writer) Option { |
nothing calls this directly
no outgoing calls
no test coverage detected