Cmd.failed: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd Lines 30-36 of cswap-bend-cli@0.1.0.0/cmd.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&start_line=30&end_line=36 import Base # `json` picks the envelope or the text error. def failed(json: Bool, kind: String, msg: String) -> Out: match json: case True{}: json_fail(kind, msg) case False{}: fail(msg) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=Out https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=fail https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=json_fail