def prof_json

cswap-bend-cli@0.1.0.0 · profview.bend:55

import cswap-bend-cli@0.1.0.0/profview.bend as Profview
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
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

55# A profile as the commands print it: what it sets, and what it comes to over the settings.
56def prof_json(+raw: Json.Json, +cfg: Cfg.Cfg, +p: P.Prof) -> Json.Json:
57  prof_json2(p, P.is_builtin(P.name_of(p)), P.has_stored(raw, P.name_of(p)), is_active(raw, P.name_of(p)), P.with_prof(cfg, p))

Uses (9)

Used by (4)