def prof_if_ok

cswap-bend-cli@0.1.0.0 · store.bend:33

import cswap-bend-cli@0.1.0.0/store.bend as Store
import Base
import cswap-bend-cli@0.1.0.0/store/plan.bend as SPlan

33def prof_if_ok(+ok: Bool, +body: String) -> SPlan.Prof:
34  match ok:
35    case True{}:
36      SPlan.profile_of_text(body)
37    case False{}:
38      SPlan.ProfNone{}

Uses (4)

Used by (1)