def plan_slot
cswap-bend-cli@0.1.0.0 · store/plan.bend:247
import cswap-bend-cli@0.1.0.0/store/plan.bend as Plan
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq
247def plan_slot(+slot: Maybe<&2, U32>, +seq: Json.Json, +email: String, +org: String, +assume_yes: Bool) -> SlotPlan:
248 match slot:
249 case None{}:
250 SPOk{U32.show(SSeq.next_slot(seq)), None{}, None{}}
251 case Some{n}:
252 plan_slot1(U32.is_lt(n, 1), n, seq, email, org, assume_yes)