Skip to main content

cli_var_value

Function cli_var_value 

Source
pub fn cli_var_value(s: &str) -> Value
Expand description

var() (--var first, then the Binding’s vars, then the default) and env_var(). A --var value as YAML 1.2’s core rules read it: true/false, null/~, integers (no leading zeros), floats, and flow lists and maps ([a, b], {k: v}) are typed; anything else stays a string (yes, NO, 2026-01-31, 010, 1.0.0). Quoting forces a string ('"false"'), and an empty value is the empty string.