def get.spec

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

import cswap-bend-cli@0.1.0.0/setcmd.bend as Setcmd
import Base
import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwrite
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

106def get.spec(json: Bool, r: Result<&2, &2, String, Settings.Spec>, raw: Json.Json) -> Cmd.Out:
107  match r:
108    case Fail{m}:
109      Cmd.failed(json, "ConfigError", m)
110    case Done{sp}:
111      get.row(json, Setwrite.row.find(Settings.dotted(sp), Setwrite.effective(raw)))

Uses (11)

Used by (1)