Skip to main content

parse_setting

Function parse_setting 

Source
pub fn parse_setting(raw: &str) -> Result<(String, Value), CoreError>
Expand description

One --setting K=V parsed with scalar auto-typing (the 05-04 tags-write --value precedent): a value that parses cleanly as bool (true/false) or integer serializes as a JSON bool / number; anything else stays a string. Arrays/objects are OUT of scope for K=V (the --definition path owns them).