Expand description
Output formatters for CLI results.
The CLI doubles as a test-scenario runner across persistences, so output
must be both human-readable (default table, ANSI styled via
[crate::table_display]) and machine-comparable. JSON variants are the
ergonomic-but-lossy options; cbor-diag (RFC 8949 §8 diagnostic
notation) is the lossless form used for golden test fixtures.
Modules§
- cbor_
diag - CBOR Diagnostic Notation writer (RFC 8949 §8).
- json
- Lossy JSON output — best-effort, for piping to
jqand human eyes. - ndjson
- Newline-delimited JSON — one record per line, easy to pipe to
jq -cor read line-by-line in tests. Same lossy rules asjson(see that module).
Enums§
- Output
Format - Output format selector passed into renderers.
Functions§
- render_
list - Render a list of records to a String in the chosen non-table format.
- render_
record - Render a single record to a String in the chosen non-table format.
- render_
scalar - Render a scalar (aggregate result) to a String.