Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputDeviceIsTerminal ¶ added in v2.39.2
func OutputDeviceIsTerminal() bool
OutputDeviceIsTerminal returns true if stdout is a terminal.
func ShowIndicator ¶
func ShowIndicator(message string, action func())
ShowIndicator displays a spinner animation while the action executes. In non-terminal environments (CI), it just executes the action without spinner.
Types ¶
type Spinner ¶ added in v2.39.2
type Spinner struct {
// contains filtered or unexported fields
}
Spinner displays an animated progress indicator in the terminal.
func NewDefaultSpinner ¶ added in v2.39.2
NewDefaultSpinner creates a Spinner with default animation characters and timing, writing to stdout.
func NewDefaultSpinnerWithOutput ¶ added in v2.39.2
NewDefaultSpinnerWithOutput creates a Spinner with default animation characters and timing.
Click to show internal directories.
Click to hide internal directories.