Cfgio.one_profile: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/cfgio.bend as Cfgio Lines 318-323 of cswap-bend-cli@0.1.0.0/cfgio.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/cfgio.bend&start_line=318&end_line=323 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json import cswap-bend-cli@0.1.0.0/cmd.bend as Cmd import cswap-bend-cli@0.1.0.0/profile.bend as P import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd def one_profile(stored: Bool, +raw: Json.Json, +name: String) -> Cmd.Out: match stored: case True{}: Cmd.doc(Json.of_pairs([("profiles", Json.of_pairs([(name, P.obj_of(Json.get(name, P.obj_of(Json.get("profiles", raw)))))]))])) case False{}: Cmd.fail(Profcmd.gone_missing(P.is_builtin(name), name)) Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=Out https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=doc https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/cmd.bend&name=fail 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/json.bend&name=of_pairs https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profcmd.bend&name=gone_missing https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=is_builtin https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/profile.bend&name=obj_of