Documentation
¶
Overview ¶
Package output renders API payloads in user-selected formats (json, yaml, raw, id) with optional --jq filtering. Table rendering is intentionally separate so callers can supply type-specific columns; see RenderTable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render formats payload and writes it to w. FormatTable is rejected here because table columns depend on the concrete type; use RenderTable instead.
func RenderMarkdownTable ¶ added in v0.1.2
RenderMarkdownTable writes a GitHub-flavored pipe table: a header row, a `--- | ---` separator, then one row per record. Headers are uppercased to match RenderTable's tabwriter output. Cells are written verbatim; callers should pre-escape any literal `|` characters.
Types ¶
Click to show internal directories.
Click to hide internal directories.