Documentation
¶
Overview ¶
Package style paints status words for a terminal. Printers emit lipgloss sequences. Writer strips them when the destination is not a color terminal: a pipe, a buffer, or NO_COLOR.
Index ¶
- func Action(action string) string
- func Bad(s string) string
- func Bold(s string) string
- func BoldBad(s string) string
- func BoldWarn(s string) string
- func BoldWhite(s string) string
- func Command(s string) string
- func CommandCell(width int, cmd string) string
- func Faint(s string) string
- func Good(s string) string
- func Host(summary string) string
- func HostEmph(summary string) string
- func Key(s string) string
- func Probe(width int, value string, ok bool) string
- func ProbeEmph(width int, value string, ok bool) string
- func SelectMark(s string) string
- func Warn(s string) string
- func Writer(w io.Writer) io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
Action pads a plan action to 8 columns, then colors the padded cell. Padding comes first so ANSI codes do not shift the column.
func CommandCell ¶
CommandCell paints a running argv, truncated to width runes with an ellipsis.
func Probe ¶
Probe pads a health cell, then colors success green and failure red. skip, "-", and empty stay faint.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.