def write_slot2
cswap-bend-cli@0.1.0.0 · store/ops.bend:282
import cswap-bend-cli@0.1.0.0/store/ops.bend as Ops
import Base
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/store/io.bend as SIo
282def write_slot2(+root: String, +creds: String, +num: String, +m: Maybe<&2, Json.Json>) -> Act.of(Unit):
283 match m:
284 case None{}:
285 Act.fail(Unit, 1, "No accounts are managed yet")
286 case Some{seq}:
287 SIo.write_cred(root, num, SIo.slot_email(seq, num), creds)