def parse_value
import cswap-bend-cli@0.1.0.0/setwrite.bend as Setwriteimport Base
import cswap-bend-cli@0.1.0.0/settings.bend as Settings
116# Strictly parse the text given to `config set`: out of range or mistyped is a
117# Bad{message}, never clamped.
118def parse_value(sp: Settings.Spec, raw: String) -> Parsed:
119 match sp:
120 case Settings.Spec{section, key, kind, lo, hi, choices, dflt}:
121 parse.kind(kind, section ++ "." ++ key, raw, lo, hi, choices)