def gone_ok
cswap-bend-cli@0.1.0.0 · profcmd.bend:173
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/cmd.bend as Cmd
import cswap-bend-cli@0.1.0.0/profile.bend as P
import cswap-bend-cli@0.1.0.0/profview.bend as PV
173def gone_ok(+json: Bool, +raw: Json.Json, +name: String, +was_active: Bool) -> Cmd.Out:
174 match json:
175 case True{}:
176 doc([("removed", Json.JStr{name}), ("activeProfile", PV.opt_json(active_json(P.active(raw))))])
177 case False{}:
178 Cmd.ok("removed profile " ++ name ++ gone_note(was_active))