Skip to main content

print_output

Function print_output 

Source
pub fn print_output<T: Serialize>(
    json_mode: bool,
    value: &T,
    table_fn: impl FnOnce() -> Table,
) -> Result<()>
Expand description

Convenience wrapper: render to stdout.

ยงErrors

Returns an error if JSON serialization or writing fails.