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

Function WithInputStream

cli/command/cli_options.go:55–60  ·  view source on GitHub ↗

WithInputStream sets a cli input stream.

(in io.ReadCloser)

Source from the content-addressed store, hash-verified

53
54// WithInputStream sets a cli input stream.
55func 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.
63func WithOutputStream(out 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…