Documentation
¶
Overview ¶
Package output renders command results as an aligned table or raw JSON, selected by the -o/--output flag. Array responses go through List; a single object goes through Detail as an aligned label/value block.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Detail ¶
Detail renders a single object: an aligned "label value" block in table format, or the raw object as indented JSON. As with List, json is deliberately the raw API shape and ignores the field projection. A field whose projected value is empty is omitted from the table (nil/absent API fields don't clutter the view); json still shows it.
func JSON ¶
JSON renders a single value as indented JSON — the raw API shape for a single-object response, as List does for arrays.
Types ¶
type Field ¶
Field projects one labeled value from a detail object of type T — Detail's single-object analog of Column.
type Format ¶
type Format string
Format is an -o/--output value.
func ParseFormat ¶
ParseFormat validates an -o/--output value.