Documentation
¶
Overview ¶
Package cli holds presentation helpers shared by Cobra commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner renders a single-line "in-progress" indicator on stderr while long-running steps run in the background. It auto-disables when stderr is not a terminal or when NO_COLOR is set, so piped/CI output stays clean.
Lifecycle:
sp := cli.NewSpinner("starting…")
defer sp.Stop()
sp.Update("searching…")
sp.Update("thinking…")
func NewSpinner ¶
NewSpinner starts a spinner with the given initial label. Always call Stop() to clear the line and release the goroutine.
Click to show internal directories.
Click to hide internal directories.