Documentation
¶
Overview ¶
Package render produces the colored terminal output: summary section, format tables, legend, and the extensionless-file list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectThemeName ¶
func DetectThemeName() string
DetectThemeName picks "dark" or "light" from the COLORFGBG environment variable ("fg;bg"). Backgrounds 7, 15, and 9-14 indicate a light terminal; anything else (or no clear signal) defaults to dark.
func FormatError ¶
FormatError renders one stderr error line: "error: <message>\n". When colored is true (stderr is a TTY and --colors is true), the "error:" prefix carries the theme's error color (R30); otherwise the result is plain text, byte-identical to non-TTY output.
Types ¶
type Options ¶
type Options struct {
Show string // "summary", "table", or "both"
Combined bool
Collapse bool // --singletons collapse
SortBy []string
SortDesc bool
Top int
ListNoExt bool
Legend bool
Colors bool // effective: flag AND stdout is a TTY
Human bool
Style string // "unicode" or "ascii"
TypeFilter string
Stats []string // selected stat names in canonical column order
Width int // terminal width (80 when colors are inactive)
Theme config.Theme
Config string // absolute path of the scan config file; "" = none (R46)
}
Options controls table rendering. All fields are presentation-only and never affect JSON output.