def parse_value

cswap-bend-cli@0.1.0.0 · setwrite.bend:116

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

Uses (5)

Used by (2)