def route2

cswap-bend-cli@0.1.0.0 · main.bend:41

import cswap-bend-cli@0.1.0.0/main.bend as CswapBendCli
import 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})

Uses (9)

Used by (1)