Skip to main content

print_payload

Function print_payload 

Source
pub(crate) fn print_payload<F>(payload: Value, human: F) -> Result<()>
where F: FnOnce(&Value) -> Result<()>,
Expand description

Prints a command result: the raw payload in JSON mode, the human rendering otherwise.