Skip to main content

resolve_now

Function resolve_now 

Source
pub fn resolve_now(
    input: &str,
    clock: DateTime<FixedOffset>,
) -> CliResult<String>
Expand description

Resolve ${now.<token>} references in input against the run clock. Every other ${...} token (env/file/secret/vars/sources/sinks/row-id) is left verbatim. now is a reserved built-in id (see expand.rs). An unknown ${now.<bad>} token is a config error (never silently passed through).