def info_of
import cswap-bend-cli@0.1.0.0/daemon/fetch.bend as Fetchimport Base
import cswap-bend-cli@0.1.0.0/collect.bend as Collect
import cswap-bend-cli@0.1.0.0/daemon/gather.bend as G
38def info_of(+e: G.Ent, +active: Maybe<&2, String>) -> Collect.Info:
39 match e:
40 case G.Ent{+slot, email, org, creds, acct}:
41 Collect.Info{Maybe.default(&2, U32, U32.read(slot), 0), email, "", org, "", disabled_of(acct), is_active(slot, active), creds}