Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format string
Format represents an output format.
func ParseFormat ¶
ParseFormat parses a format string, defaulting to table.
type TTYSpinner ¶
type TTYSpinner struct {
// contains filtered or unexported fields
}
TTYSpinner wraps spinner.Spinner with transparent TTY detection. All methods are no-ops when not running in a TTY.
func NewSpinner ¶
func NewSpinner(suffix string) *TTYSpinner
NewSpinner creates a TTYSpinner with the given suffix. The underlying spinner is only initialised when output is a TTY.
func (*TTYSpinner) Start ¶
func (t *TTYSpinner) Start()
Start starts the spinner. No-op when not a TTY.
func (*TTYSpinner) Suffix ¶
func (t *TTYSpinner) Suffix(suffix string)
Suffix updates the spinner suffix text. No-op when not a TTY.
Click to show internal directories.
Click to hide internal directories.