MCPcopy Create free account
hub / github.com/codemod/codemod / resolve_string_with_expression

Function resolve_string_with_expression

crates/models/src/variable.rs:210–246  ·  view source on GitHub ↗

Resolve template strings with expressions in ${{ }} syntax Example: "Hello ${{ params.name }} ${{ 1 + 2 }}" -> "Hello John Doe 3"

(
    template: &str,
    params: &HashMap<String, Value>,
    state: &HashMap<String, Value>,
    matrix_values: Option<&HashMap<String, Value>>,
    steps: Option<&HashMap<String, HashMap<String, St

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

execute_taskMethod · 0.85
execute_ai_stepMethod · 0.85
prepare_task_worktreeMethod · 0.85
begin_task_branchMethod · 0.85
resolve_usize_valueFunction · 0.85
resolve_string_listFunction · 0.85

Calls 5

expr_reFunction · 0.85
resolve_expressionsFunction · 0.85
replaceMethod · 0.80
as_strMethod · 0.45
getMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…