def gone_plan1
cswap-bend-cli@0.1.0.0 · profcmd.bend:194
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
194def gone_plan1(+is_default: Bool, +json: Bool, +raw: Json.Json, +name: String) -> Plan2:
195 match is_default:
196 case True{}:
197 Answer{err(json, "profile 'default' is built in and cannot be removed")}
198 case False{}:
199 gone_plan3(P.has_stored(raw, name), json, raw, name)