Setwrite.is_set: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite Lines 142-146 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=142&end_line=146 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 # Is the key present in the raw file (an explicit default still counts)? def is_set(raw: Json.Json, sp: Settings.Spec) -> Bool: match sp: case Settings.Spec{section, key, kind, lo, hi, choices, dflt}: has.in(Json.get(section, raw), key) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=get 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=has.in