def set_plan1

cswap-bend-cli@0.1.0.0 · profcmd.bend:154

import cswap-bend-cli@0.1.0.0/profcmd.bend as Profcmd
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

154def set_plan1(+is_default: Bool, +json: Bool, +raw: Json.Json, +name: String, +key: String, +value: String) -> Plan2:
155  match is_default:
156    case True{}:
157      Answer{err(json, "profile 'default' follows the autoswitch settings and cannot be changed; create another profile, or use `cswap config set`")}
158    case False{}:
159      set_plan2(P.valid_name(name), json, raw, name, key, value)

Uses (7)

Used by (1)