def route2
import cswap-bend-cli@0.1.0.0/main.bend as CswapBendCliimport Base
import cswap-bend-cli@0.1.0.0/exec.bend as Exec
import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd
41def route2(+args: List<&2, String>) -> IO(Cmd.Out):
42 match args:
43 case Nil{}:
44 Exec.exec_line(args, None{})
45 case Con{h, t}:
46 route3(String.eq(h, "rpc") || String.eq(h, "serve"), h, t, Con{h, t})