def switch_run

cswap-bend-cli@0.1.0.0 · cliswitch.bend:99

import cswap-bend-cli@0.1.0.0/cliswitch.bend as Cliswitch
import Base
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/swlive.bend as SwLive
import cswap-bend-cli@0.1.0.0/switch.bend as Switch

99def switch_run(+ctx: SBase.Ctx, ident: Maybe<&2, String>, +force: Bool, +strategy: Maybe<&2, String>, +gate: Gate, +opts: SwLive.Opts) -> Act.of(Json.Json):
100  match ident:
101    case Some{id}:
102      Switch.switch_to(ctx, id, force, opts)
103    case None{}:
104      Switch.switch_auto(ctx, Maybe.default(&2, String, strategy, ""), gate_models(gate), opts)

Uses (12)

Used by (1)