def cand_of

cswap-bend-cli@0.1.0.0 · switch.bend:82

import cswap-bend-cli@0.1.0.0/switch.bend as Switch
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/swpick.bend as P
import cswap-bend-cli@0.1.0.0/swlive.bend as L
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
import cswap-bend-cli@0.1.0.0/store/io.bend as SIo
import cswap-bend-cli@0.1.0.0/store/seq.bend as SSeq

82def cand_of(+root: String, +seq: Json.Json, +usage: Json.Json, +models: List<&2, String>, +slot: String) -> Act.of(P.Cand):
83  do ActM<P.Cand>:
84    c : String <- SIo.read_cred(root, slot, SIo.slot_email(seq, slot))
85    cfg : Maybe<&2, String> <- L.read_text_opt(SBase.config_path(root, slot, SIo.slot_email(seq, slot)))
86    return cand_of2(slot, SSeq.slot_record(seq, slot), c, cfg, usage, models)

Uses (15)

Used by (1)