Skip to main content

envelope

Function envelope 

Source
pub fn envelope(ok: bool, command: &str, data: Value) -> Value
Expand description

{ "ok": true|false, "command": "<name>", "data": <data> }. The shape mirrors acli’s output envelope so user programs can match lex’s own --output json shape without each command rolling their own.