CswapBendCli.run_plan: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/main.bend as CswapBendCli Lines 25-32 of cswap-bend-cli@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/main.bend&start_line=25&end_line=32 import Base import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd import cswap-bend-cli@0.1.0.0/server.bend as Server import cswap-bend-cli@0.1.0.0/srvargs.bend as Sa def run_plan(p: Sa.Plan) -> IO(Cmd.Out): match p: case Sa.PRpc{fmt}: Server.rpc(fmt) case Sa.PServe{path, fmt}: Server.serve(path, fmt) case Sa.PBad{msg}: IO.pure(Cmd.Out, Cmd.Out{2, "", "usage: cswap [args] [options]\ncswap: error: " ++ msg ++ "\n"}) Uses (7): 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=String.append 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/server.bend&name=rpc https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/server.bend&name=serve https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/srvargs.bend&name=Plan