Documentation
¶
Overview ¶
Package ui provides shared lipgloss styles and output formatting helpers.
Index ¶
Constants ¶
View Source
const ( SymOK = "✓" SymWarn = "⚠" SymFail = "!" SymUp = "↑" SymLink = "→" SymBusy = "~" // in-progress indicator for the progress bar SymSkipped = "ø" // slot exists but was structurally skipped (e.g. no remote) )
Symbols used in status output.
Variables ¶
View Source
var ( OK = lipgloss.NewStyle().Foreground(lipgloss.Color("2")) // green Warn = lipgloss.NewStyle().Foreground(lipgloss.Color("3")) // yellow Fail = lipgloss.NewStyle().Foreground(lipgloss.Color("1")) // red Muted = lipgloss.NewStyle().Foreground(lipgloss.Color("8")) // bright black / grey Bold = lipgloss.NewStyle().Bold(true) Header = Muted.Bold(true) )
Styles.
Functions ¶
func SectionHeader ¶
SectionHeader renders a bold+muted label followed by a muted trailing rule, e.g. "REPOS ────────────────────────────".
Types ¶
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is an ANSI-aware columnar writer. Call Row for each line, then Flush. Columns are padded to the widest value using lipgloss's table package, which measures visual width rather than byte length so styled cells align correctly.
func NewTableWriter ¶
NewTableWriter returns a Table writing to w.
Click to show internal directories.
Click to hide internal directories.