Profcmd.set_plan2: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd Lines 147-152 of cswap-bend-cli@0.1.0.0/profcmd.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/profcmd.bend&start_line=147&end_line=152 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/profile.bend as P def set_plan2(+valid: Bool, +json: Bool, +raw: Json.Json, +name: String, +key: String, +value: String) -> Plan2: match valid: case False{}: Answer{err(json, "invalid profile name '" ++ name ++ "': use letters, digits, '-' and '_', starting with a letter or digit")} case True{}: set_plan3(P.update(set_base(P.find(raw, name), name), key, value), json, raw, name, key, value) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append 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/profcmd.bend&name=Plan2 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profcmd.bend&name=err https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profcmd.bend&name=set_base https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profcmd.bend&name=set_plan3 https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=find https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=update