Documentation
¶
Index ¶
- Constants
- func Dimf(format string, args ...any)
- func Error(msg string)
- func Fatalf(format string, args ...any)
- func Header(msg string)
- func IsTTY() bool
- func ProgressBar(label string, current, total int)
- func ProgressDone(msg string)
- func Status(msg string)
- func Success(msg string)
- func TermWidth() int
- func Waiting(msg string)
- type Spinner
Constants ¶
View Source
const ( Green = "\033[32m" Red = "\033[31m" Yellow = "\033[33m" Cyan = "\033[36m" Blue = "\033[34m" Dim = "\033[2m" Bold = "\033[1m" Reset = "\033[0m" )
ANSI color constants
Variables ¶
This section is empty.
Functions ¶
func ProgressBar ¶
ProgressBar renders an inline ASCII progress bar that overwrites itself.
[======> ] 42% Extracting (12/30) Swift
func ProgressDone ¶
func ProgressDone(msg string)
ProgressDone clears the progress line and prints a final summary.
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner displays an animated ASCII spinner with a label. Call Stop() to clear the line. Safe for concurrent use.
func NewSpinner ¶
NewSpinner starts a spinner with the given label.
Click to show internal directories.
Click to hide internal directories.