MCPcopy Create free account
hub / github.com/docker/compose / WithStreams

Function WithStreams

pkg/compose/compose.go:98–105  ·  view source on GitHub ↗

WithStreams sets custom I/O streams for output and interaction

(out, err io.Writer, in io.Reader)

Source from the content-addressed store, hash-verified

96
97// WithStreams sets custom I/O streams for output and interaction
98func 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
108func WithOutputStream(out io.Writer) Option {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected