MCPcopy Index your code
hub / github.com/docker/cli / WithOutputStream

Function WithOutputStream

cli/command/cli_options.go:63–68  ·  view source on GitHub ↗

WithOutputStream sets a cli output stream.

(out io.Writer)

Source from the content-addressed store, hash-verified

61
62// WithOutputStream sets a cli output stream.
63func 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.
71func WithErrorStream(err io.Writer) CLIOption {

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…