def with_flags

cswap-bend-cli@0.1.0.0 · daemon/entry.bend:108

import cswap-bend-cli@0.1.0.0/daemon/entry.bend as Entry
import Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/swlive.bend as L
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg

108def with_flags(+ctx: SBase.Ctx, +state_dir: String, +opts: L.Opts, +version: String, +over: Maybe<&2, String>, r: Result<&2, &2, String, Cfg.Flags>) -> Act.of(U32):
109  match r:
110    case Fail{msg}:
111      Act.fail(U32, 2, "cswap auto: error: " ++ msg)
112    case Done{f}:
113      go(ctx, f, state_dir, opts, version, over)

Uses (11)

Used by (1)