Files
kubevela/pkg/cmd/util/cmd.go
2020-07-07 00:12:13 +08:00

15 lines
357 B
Go

package util
import "io"
// IOStreams provides the standard names for iostreams. This is useful for embedding and for unit testing.
// Inconsistent and different names make it hard to read and review code
type IOStreams struct {
// In think, os.Stdin
In io.Reader
// Out think, os.Stdout
Out io.Writer
// ErrOut think, os.Stderr
ErrOut io.Writer
}