def get.show2

cswap-bend-cli@0.1.0.0 · setcmd.bend:86

import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmd
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/settings.bend as Settings

86def get.show2(json: Bool, +sp: Settings.Spec, value: Json.Json, set: Bool, text: String) -> Cmd.Out:
87  match json:
88    case True{}:
89      Cmd.doc(Json.of_pairs([("schemaVersion", Json.JNum{"1"}), ("key", Json.JStr{Settings.dotted(sp)}),
90        ("value", value), ("isSet", Json.JBool{set})]))
91    case False{}:
92      Cmd.ok(text)

Uses (11)

Used by (1)