Documentation
¶
Index ¶
- type Spinner
- type UI
- func (u *UI) Dim(msg string)
- func (u *UI) EndFrame()
- func (u *UI) Error(msg string)
- func (u *UI) Header(msg string)
- func (u *UI) IsTTY() bool
- func (u *UI) Keyval(key, value string)
- func (u *UI) StartFrame(title string)
- func (u *UI) StartSpinner(msg string) *Spinner
- func (u *UI) StatusColor(status string) string
- func (u *UI) Success(msg string)
- func (u *UI) Table(headers []string, rows [][]string)
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 displays an animated progress indicator.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI provides styled terminal output.
func (*UI) Error ¶
Error prints an error message: "error: msg" to errOut. Only the "error:" prefix is styled to prevent lipgloss from mangling multi-line message bodies.
func (*UI) StartFrame ¶
StartFrame prints a dimmed separator header: " --- title ---"
func (*UI) StartSpinner ¶
StartSpinner begins an animated spinner with the given message. In non-TTY mode it prints the message once and returns immediately. Call Stop() to clear the spinner line.
func (*UI) StatusColor ¶
StatusColor returns the status string colored green if "running", yellow otherwise.
Click to show internal directories.
Click to hide internal directories.