Expand description
Pretty / JSON / colorless emitters. Multi-view emit: one serializable model, pretty or JSON, color or not.
Structs§
- View
- How to present a model. JSON never contains ANSI.
Traits§
- Pretty
- A serializable model whose pretty view is a Jinja template.
- Render
- Pretty text for a model. Prefer
Pretty+ a Jinja template.
Functions§
- emit_
json - Write
valueas one JSON line to stdout. No ANSI. - render_
template - Render
valuethrough a Jinja template. Used byView::show_pretty. - write_
stderr - Write raw bytes to stderr with
color. - write_
stdout - Write raw bytes to stdout with
color.