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

Function WithErrorStream

cli/command/cli_options.go:71–76  ·  view source on GitHub ↗

WithErrorStream sets a cli error stream.

(err io.Writer)

Source from the content-addressed store, hash-verified

69
70// WithErrorStream sets a cli error stream.
71func WithErrorStream(err io.Writer) CLIOption {
72 return func(cli *DockerCli) error {
73 cli.err = streams.NewOut(err)
74 return nil
75 }
76}
77
78// WithDefaultContextStoreConfig configures the cli to use the default context store configuration.
79func WithDefaultContextStoreConfig() CLIOption {

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…