Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IOStreams ¶
type IOStreams struct { // In think, os.Stdin In io.Reader // Out think, os.Stdout Out io.Writer // ErrOut think, os.Stderr ErrOut io.Writer }
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 This is based on cli-runtime, but just the nice type without the dependency
func StandardIOStreams ¶
func StandardIOStreams() IOStreams
StandardIOStreams returns an IOStreams from os.Stdin, os.Stdout
Click to show internal directories.
Click to hide internal directories.