Documentation
¶
Overview ¶
Package ui renders tforg's terminal output: the color palette and unified diffs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Palette ¶
type Palette struct {
// contains filtered or unexported fields
}
func NewPalette ¶
NewPalette decides whether to emit color: an explicit flag or the NO_COLOR convention wins, CLICOLOR_FORCE overrides the TTY check (useful when a hook runner captures output), otherwise color only when stdout is a terminal.
Click to show internal directories.
Click to hide internal directories.