Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileReader ¶
func NewFileReader ¶
func NewFileReader(reader io.Reader, fd uint) *FileReader
func (*FileReader) Fd ¶
func (f *FileReader) Fd() uintptr
type FileWriter ¶
func NewFileWriter ¶
func NewFileWriter(reader io.Writer, fd uint) *FileWriter
func (*FileWriter) Fd ¶
func (f *FileWriter) Fd() uintptr
type Streams ¶
type Streams struct { In terminal.FileReader Out terminal.FileWriter ErrOut io.Writer }
Streams encapsulates I/O streams.
func NewStdStreams ¶
func NewStdStreams() *Streams
NewStdStreams returns a Streams object bound to stdin, stdout, stderr.
func NewStreams ¶
func NewStreams(streams genericclioptions.IOStreams) *Streams
NewStreams returns a Streams object from an underlying genericclioptions.IOStreams.
func NewTTYStreams ¶
NewTTYStreams returns a Streams object from a TTY file.
func (*Streams) Print ¶
func (s *Streams) Print(args ...interface{})
Print writes to the output stream.
func (*Streams) Println ¶
func (s *Streams) Println(args ...interface{})
Println writes to the output stream.
func (*Streams) SetCmdOutput ¶
SetCmdOutput updates the output streams of the command to itself.
Click to show internal directories.
Click to hide internal directories.