def store

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

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

287# settings.json with the profile stored (created or replaced).
288def store(+raw: Json.Json, +p: Prof) -> Json.Json:
289  Json.set("profiles", store.at(p, obj_of(Json.get("profiles", raw))), Setload.with_version(raw))

Uses (7)

Used by (1)