def tag_of

cswap-bend-cli@0.1.0.0 · daemon/live.bend:37

import cswap-bend-cli@0.1.0.0/daemon/live.bend as Live
import Base
import cswap-bend-cli@0.1.0.0/profile.bend as P
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg

37def tag_of(+res: P.Res, +c: Cfg.Cfg) -> Maybe<&2, Tag>:
38  match res:
39    case P.ROk{p}:
40      Some{Tag{P.name_of(p), Cfg.cfg_strategy(c)}}
41    case o:
42      None{}

Uses (6)

Used by (1)