Skip to main content

Module printer

Module printer 

Source
Available on crate feature terminal only.
Expand description

Command output rendering to stdout.

The Printer trait abstracts how a command emits its result, the StdoutPrinter implementation writes plain text or JSON to stdout, and PrintTable renders a value as a table.

Structs§

Message
A plain message wrapper providing text and JSON output.
StdoutPrinter
A Printer writing plain text or JSON to stdout.

Traits§

PrintTable
A value that can render itself as a table.
Printer
Sink a command writes its output to.