pub(crate) fn print_payload<F>(payload: Value, human: F) -> Result<()>where F: FnOnce(&Value) -> Result<()>,
Prints a command result: the raw payload in JSON mode, the human rendering otherwise.