2019-01-28 08:30:31 -05:00
|
|
|
package command
|
|
|
|
|
|
|
|
import (
|
2023-04-01 12:16:52 -04:00
|
|
|
"io"
|
|
|
|
|
2019-01-28 08:30:31 -05:00
|
|
|
"github.com/docker/cli/cli/streams"
|
|
|
|
)
|
|
|
|
|
|
|
|
// InStream is an input stream used by the DockerCli to read user input
|
2023-04-01 12:16:52 -04:00
|
|
|
//
|
|
|
|
// Deprecated: Use [streams.In] instead.
|
2019-01-28 08:30:31 -05:00
|
|
|
type InStream = streams.In
|
|
|
|
|
|
|
|
// OutStream is an output stream used by the DockerCli to write normal program
|
|
|
|
// output.
|
2023-04-01 12:16:52 -04:00
|
|
|
//
|
|
|
|
// Deprecated: Use [streams.Out] instead.
|
2019-01-28 08:30:31 -05:00
|
|
|
type OutStream = streams.Out
|
|
|
|
|
2023-04-01 12:16:52 -04:00
|
|
|
// NewInStream returns a new [streams.In] from an [io.ReadCloser].
|
|
|
|
//
|
|
|
|
// Deprecated: Use [streams.NewIn] instead.
|
|
|
|
func NewInStream(in io.ReadCloser) *streams.In {
|
|
|
|
return streams.NewIn(in)
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewOutStream returns a new [streams.Out] from an [io.Writer].
|
|
|
|
//
|
|
|
|
// Deprecated: Use [streams.NewOut] instead.
|
|
|
|
func NewOutStream(out io.Writer) *streams.Out {
|
|
|
|
return streams.NewOut(out)
|
|
|
|
}
|