Documentation
¶
Overview ¶
Package ui provides terminal output writers with color profile support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidColor = errors.New("invalid --color value")
ErrInvalidColor is returned when an unsupported --color value is given.
Functions ¶
func RenderTable ¶
RenderTable builds a formatted table string using lipgloss. When color is true, headers are styled and borders are rendered with color. When color is false, a plain ASCII table is produced.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
Printer wraps a termenv.Output with a resolved color profile.
func (*Printer) ColorEnabled ¶
ColorEnabled returns true when color output is active.
type UI ¶
type UI struct {
// contains filtered or unexported fields
}
UI wraps stdout and stderr printers with color profile support.
func FromContext ¶
FromContext retrieves the UI from the context.
Click to show internal directories.
Click to hide internal directories.