def opts_of

cswap-bend-cli@0.1.0.0 · rpcmsg.bend:100

import cswap-bend-cli@0.1.0.0/rpcmsg.bend as Rpcmsg
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

100def opts_of(+v: Json.Json) -> Result<&2, &2, String, List<&2, String>>:
101  match v:
102    case Json.JNull{}:
103      Done{[]}
104    case Json.JObj{f}:
105      flags_of(f)
106    case _:
107      Fail{"opts must be an object"}

Uses (5)

Used by (1)