def tag_of
import cswap-bend-cli@0.1.0.0/daemon/live.bend as Liveimport 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{}