Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVersion ¶
func SetVersion(version, commit, date string)
SetVersion is called by main to inject build-time version info.
Types ¶
type Spinner ¶ added in v0.7.0
type Spinner struct {
// contains filtered or unexported fields
}
Spinner displays an animated braille spinner on stderr. It is a no-op when stderr is not a TTY or when JSON mode is active.
func StartSpinner ¶ added in v0.7.0
StartSpinner creates and starts a spinner with the given initial message. If stderr is not a terminal or JSON mode is enabled, the returned Spinner is inert (Update and Stop are safe no-ops).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.