def with_log

cswap-bend-cli@0.1.0.0 · daemon/shadowcli.bend:107

import cswap-bend-cli@0.1.0.0/daemon/shadowcli.bend as Shadowcli
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

107def with_log(+ctx: SBase.Ctx, +opts: L.Opts, +m: Maybe<&2, String>, +rest: List<&2, String>) -> Act.of(U32):
108  match m:
109    case None{}:
110      Act.fail(U32, 2, "cswap auto: error: --shadow needs --shadow-log PATH")
111    case Some{log}:
112      with_flags(ctx, opts, log, Cfg.parse_flags(rest))

Uses (10)

Used by (1)