package
Version:
v0.1.20
Opens a new window with list of versions in this module.
Published: Sep 14, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package output renders command results either as aligned text tables (default)
or as JSON (-o json) for scripting.
Format is the selected output format.
const (
FormatTable Format = "table"
FormatJSON Format = "json"
)
Parse validates a --output value.
Printer writes results in the chosen format.
JSON writes v as indented JSON. Used directly by read commands under -o json.
Render prints v as JSON when Format is JSON, otherwise calls table with the
supplied header/row builder. This keeps every read command a one-liner.
Table writes a header + rows as an aligned table.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.