Documentation
¶
Overview ¶
Package ui degrades to plain text when output is not a terminal or color is disabled.
Index ¶
- func Age(t time.Time) string
- func Bold(s string) string
- func Confirm(prompt string) bool
- func Cyan(s string) string
- func Detail(format string, a ...any)
- func Dim(s string) string
- func Fail(format string, a ...any)
- func Green(s string) string
- func Info(format string, a ...any)
- func IsTerminal() bool
- func Magenta(s string) string
- func Red(s string) string
- func SetColor(on bool)
- func Status(s string) string
- func Success(format string, a ...any)
- func Warn(format string, a ...any)
- func Yellow(s string) string
- type Spinner
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func IsTerminal() bool
Types ¶
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Spinner renders nothing off a TTY; callers' plain status lines carry the information there.
func NewSpinner ¶
Click to show internal directories.
Click to hide internal directories.