Skip to main content

Module view

Module view 

Source
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 value as one JSON line to stdout. No ANSI.
render_template
Render value through a Jinja template. Used by View::show_pretty.
write_stderr
Write raw bytes to stderr with color.
write_stdout
Write raw bytes to stdout with color.