Skip to main content

emit

Function emit 

Source
pub fn emit<T: Serialize>(code: &str, payload: &T) -> Result<(), Error>
Expand description

Emit a payload to stdout as one line of JSON. Wraps shared::afdata::emit and is the single seam through which CLI subcommands produce output.