Documentation
¶
Overview ¶
Package output is the shared rendering engine every command uses. It is TTY-aware (aligned color tables on a terminal, tab-separated values when piped), honors --format=json|yaml|table|text and VIBEXP_FORMAT, applies a built-in gojq filter (--jq), and keeps a strict contract: stdout carries only data, and --format=json is the raw API response body byte-for-byte.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorEnabled ¶
ColorEnabled reports whether ANSI color should be emitted: only on a TTY, and never when NO_COLOR is set or TERM=dumb.
func Render ¶
Render writes raw (the exact API response body) to w per opts. A --jq filter, when present, is applied first and forces JSON output (or YAML if explicitly requested). Table/text formats require a spec; without one they fall back to the raw JSON body, which keeps raw passthrough (e.g. `vibexp api`) correct.
Types ¶
type Format ¶
type Format string
Format is an output format selector.
func ParseFormat ¶
ParseFormat validates a --format / VIBEXP_FORMAT value.