Documentation ¶
Index ¶
- type IOStreams
- func (s *IOStreams) IsStderrTTY() bool
- func (s *IOStreams) IsStdinTTY() bool
- func (s *IOStreams) IsStdoutTTY() bool
- func (s *IOStreams) SetStderrTTY(isTTY bool)
- func (s *IOStreams) SetStdinTTY(isTTY bool)
- func (s *IOStreams) SetStdoutTTY(isTTY bool)
- func (s *IOStreams) StartProgressIndicator(str string)
- func (s *IOStreams) StopProgressIndicator()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOStreams ¶
type IOStreams struct { In io.ReadCloser Out io.Writer ErrOut io.Writer // contains filtered or unexported fields }
IOStreams contains information for input/output used in the CLI.
func System ¶
func System() *IOStreams
System returns an IOStreams object with prepared input/output.
func (*IOStreams) IsStderrTTY ¶
IsStderrTTY checks if stderr is a TTY.
func (*IOStreams) IsStdinTTY ¶
IsStdinTTY checks if stdin is a TTY.
func (*IOStreams) IsStdoutTTY ¶
IsStdoutTTY checks if stdout is a TTY.
func (*IOStreams) SetStderrTTY ¶
SetStderrTTY marks stderr as TTY.
func (*IOStreams) SetStdinTTY ¶
SetStdinTTY marks stdin as TTY.
func (*IOStreams) SetStdoutTTY ¶
SetStdoutTTY marks stdout as TTY.
func (*IOStreams) StartProgressIndicator ¶
StartProgressIndicator creates a new spinner indicator.
func (*IOStreams) StopProgressIndicator ¶
func (s *IOStreams) StopProgressIndicator()
StopProgressIndicator stops the running spinner indicator.
Click to show internal directories.
Click to hide internal directories.