Documentation
¶
Overview ¶
Package ui centralises terminal styling helpers used by the CLI.
Two modes:
- fancy: lipgloss colors + emoji. For human terminals.
- plain: no ANSI, ASCII tokens (e.g. "OK"). For pipes, AI agents, CI logs, or when --plain / NO_COLOR is set.
Index ¶
- Variables
- func Arrow(plain bool) string
- func Dim(plain bool, s string) string
- func Err(plain bool) string
- func Header(plain bool, s string) string
- func Info(plain bool) string
- func IsPlain(w io.Writer) bool
- func OK(plain bool) string
- func StatusBadge(plain bool, label string) string
- func Title(plain bool, s string) string
- func Warn(plain bool) string
Constants ¶
This section is empty.
Variables ¶
View Source
var Plain bool
Plain forces ASCII-only, color-free output. Set from the --plain flag.
Functions ¶
func IsPlain ¶
IsPlain reports whether w should receive plain (AI-friendly) output. Order: explicit flag, NO_COLOR env, non-TTY writer.
func StatusBadge ¶
StatusBadge returns a colored, emoji-prefixed status string for the labels produced by data.StatusLabel. In plain mode the label is returned verbatim.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.