Package output renders command results in user-selected formats.
Supported formats: json, yaml, markdown, table, csv. The JSON and YAML
renderers operate directly on the provided value (via encoding/json and
gopkg.in/yaml.v3). The markdown/table/csv renderers operate on the tabular
representation supplied by the caller, so each command is responsible for
deciding which fields are columns.
const (
FormatJSON Format = "json"
FormatYAML Format = "yaml"
FormatMarkdown Format = "markdown"
FormatTable Format = "table"
FormatCSV Format = "csv"
)