def fetch.start
cswap-bend-cli@0.1.0.0 · usage.bend:170
import cswap-bend-cli@0.1.0.0/usage.bend as Usage
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/usage/gate.bend as UGate
170def fetch.start(m: Maybe<&2, String>, gate: UGate.Gate, +cred: String, +o: Json.Json, +active: Bool, +now: U32, +off: U32) -> IO(Fetched):
171 match m:
172 case None{}:
173 done(out.kind("no-access-token", None{}), None{})
174 case Some{t}:
175 fetch.gate(gate, cred, o, t, active, now, off)