Skip to main content

interpolate_value

Function interpolate_value 

Source
pub fn interpolate_value(value: &mut Value) -> CliResult<()>
Expand description

Resolve load-time directives (${env:} / ${file:} / ${secret:}) inside an already-parsed config tree by running interpolate on every string scalar — object keys and string values, recursively.

This is the structure-safe counterpart to running interpolate on the raw document text: because substitution happens per-scalar, a resolved value containing markup-significant characters (:, newlines, -) can never inject a key, an array element, or otherwise alter the document’s structure (F43) — it stays the single scalar it was parsed as, exactly like the secrets-manager pass. Deferred ${id.path} / ${now.*} tokens survive verbatim for their later resolution stages.