Rpc.run_doc: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/rpc.bend as Rpc Lines 45-50 of cswap-bend-cli@0.1.0.0/rpc.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/rpc.bend&start_line=45&end_line=50 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/fmt/out.bend as O import cswap-bend-cli@0.1.0.0/rpcmsg.bend as M def run_doc(+f: O.Fmt, r: Result<&2, &2, String, Json.Json>) -> IO(String): match r: case Done{j}: run_req(f, M.plan(j)) case Fail{e}: IO.pure(String, render(f, M.err_resp(Json.JNull{}, "bad_request", e, 2))) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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/fmt/out.bend&name=Fmt https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/rpc.bend&name=render https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/rpc.bend&name=run_req https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/rpcmsg.bend&name=err_resp https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/rpcmsg.bend&name=plan