Skip to main content

parse_cli_value

Function parse_cli_value 

Source
pub fn parse_cli_value(raw: &str) -> Value
Expand description

Parses a CLI argument into a JSON value for put_raw - tries real JSON first (42 -> a number, "Alice" -> a string, true -> a bool), falling back to storing the raw text as a JSON string so xr db:put name Alice works without shell-quoting a JSON string.