style

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

func Action(action string) string

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 Bad

func Bad(s string) string

Bad marks a failed probe or a process that is down.

func Bold

func Bold(s string) string

Bold marks a section title or a service name.

func BoldBad

func BoldBad(s string) string

BoldBad is Bad with emphasis for a selected table row.

func BoldWarn

func BoldWarn(s string) string

BoldWarn is Warn with emphasis for a selected table row.

func BoldWhite

func BoldWhite(s string) string

BoldWhite is faint table text on the selected row.

func Command

func Command(s string) string

Command is a running argv on an explicit black background.

func CommandCell

func CommandCell(width int, cmd string) string

CommandCell paints a running argv, truncated to width runes with an ellipsis.

func Faint

func Faint(s string) string

Faint marks unchanged, missing, and secondary text.

func Good

func Good(s string) string

Good marks a successful or steady state.

func Host

func Host(summary string) string

Host colors the approvalLevel and configured words of an approval summary.

func HostEmph

func HostEmph(summary string) string

HostEmph is Host with bold for the selected table row.

func Key

func Key(s string) string

Key marks a keyboard shortcut in a shortcut bar.

func Probe

func Probe(width int, value string, ok bool) string

Probe pads a health cell, then colors success green and failure red. skip, "-", and empty stay faint.

func ProbeEmph

func ProbeEmph(width int, value string, ok bool) string

ProbeEmph is Probe with bold for the selected table row.

func SelectMark

func SelectMark(s string) string

SelectMark is the bold blue row cursor in cat9s.

func Warn

func Warn(s string) string

Warn marks a change that is not a failure.

func Writer

func Writer(w io.Writer) io.Writer

Writer downgrades or strips ANSI from the environment and the destination.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL