def rpc
import cswap-bend-cli@0.1.0.0/server.bend as Serverimport Base
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import cswap-bend-cli@0.1.0.0/fmt/out.bend as O
86# Serve the messages on standard input; ends at end of input.
87def rpc(+fmt: O.Fmt) -> IO(Cmd.Out):
88 IO.bind(Fs.Res(File), Cmd.Out, File.open("/dev/stdin", "r"), r => rpc_start(r, fmt))