def remove

cswap-bend-cli@0.1.0.0 · profile.bend:305

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json

305# settings.json without the stored profile; the active profile is cleared if
306# it was this one.
307def remove(+raw: Json.Json, +name: String) -> Json.Json:
308  drop.active(String.eq(Maybe.default(&2, String, active(raw), ""), name), drop.empty(Json.del(name, obj_of(Json.get("profiles", raw))), raw))

Uses (10)

Used by (1)