Setwrite.unset_in: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite Lines 171-175 of cswap-bend-cli@0.1.0.0/setwrite.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&start_line=171&end_line=175 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 # del raw[section][key]; an emptied section goes too. def unset_in(+raw: Json.Json, sp: Settings.Spec) -> Json.Json: match sp: case Settings.Spec{+section, +key, kind, lo, hi, choices, dflt}: unset.fin2(Json.del(key, Setload.section_of(raw, section)), section, Setload.with_version(raw)) Uses (6): 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/json.bend&name=del https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=section_of https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setload.bend&name=with_version https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/settings.bend&name=Spec https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/setwrite.bend&name=unset.fin2