@@ -18,8 +18,8 @@ func WithStandardStreams() DockerCliOption {
1818 return func (cli * DockerCli ) error {
1919 // Set terminal emulation based on platform as required.
2020 stdin , stdout , stderr := term .StdStreams ()
21- cli .in = streams .NewInStream (stdin )
22- cli .out = streams .NewOutStream (stdout )
21+ cli .in = streams .NewIn (stdin )
22+ cli .out = streams .NewOut (stdout )
2323 cli .err = stderr
2424 return nil
2525 }
@@ -28,7 +28,7 @@ func WithStandardStreams() DockerCliOption {
2828// WithCombinedStreams uses the same stream for the output and error streams.
2929func WithCombinedStreams (combined io.Writer ) DockerCliOption {
3030 return func (cli * DockerCli ) error {
31- cli .out = streams .NewOutStream (combined )
31+ cli .out = streams .NewOut (combined )
3232 cli .err = combined
3333 return nil
3434 }
@@ -37,15 +37,15 @@ func WithCombinedStreams(combined io.Writer) DockerCliOption {
3737// WithInputStream sets a cli input stream.
3838func WithInputStream (in io.ReadCloser ) DockerCliOption {
3939 return func (cli * DockerCli ) error {
40- cli .in = streams .NewInStream (in )
40+ cli .in = streams .NewIn (in )
4141 return nil
4242 }
4343}
4444
4545// WithOutputStream sets a cli output stream.
4646func WithOutputStream (out io.Writer ) DockerCliOption {
4747 return func (cli * DockerCli ) error {
48- cli .out = streams .NewOutStream (out )
48+ cli .out = streams .NewOut (out )
4949 return nil
5050 }
5151}
0 commit comments