Setload.norm.one: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setload.bend as Setload Lines 119-122 of cswap-bend-cli@0.1.0.0/setload.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&start_line=119&end_line=122 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/settings.bend as Settings def norm.one(sp: Settings.Spec, sec: String, src: Json.Json, out: Json.Json) -> Json.Json: match sp: case Settings.Spec{section, +key, kind, lo, hi, choices, dflt}: norm.one2(String.eq(section, sec), key, norm.kind(kind, lo, hi, choices, dflt, get_or_null(key, src)), out) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=get_or_null https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=norm.kind https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=norm.one2 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=Spec