Documentation
¶
Overview ¶
Package iostreams provides I/O stream abstractions for CLI commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOStreams ¶
type IOStreams struct {
In io.Reader
Out io.Writer
ErrOut io.Writer
// contains filtered or unexported fields
}
IOStreams holds the standard I/O streams and TTY state for a command invocation.
func System ¶
func System() *IOStreams
System returns an IOStreams wired to the real os.Stdin/Stdout/Stderr, with TTY state detected from os.Stdout.
func (*IOStreams) IsStdoutTTY ¶
IsStdoutTTY reports whether Out is connected to an interactive terminal.
Click to show internal directories.
Click to hide internal directories.