def value_of

cswap-bend-cli@0.1.0.0 · setwrite.bend:180

import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite
import Base
import cswap-bend-cli@0.1.0.0/setload.bend as Setload
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/settings.bend as Settings

180def value_of(+norm: Json.Json, sp: Settings.Spec) -> Json.Json:
181  match sp:
182    case Settings.Spec{+section, key, kind, lo, hi, choices, dflt}:
183      Setload.get_or_null(key, Setload.get_or_null(section, norm))

Uses (3)

Used by (1)