pub fn resolve_task_command(
cmd: &Value,
scripts: &HashMap<String, Value>,
) -> Result<Value>Expand description
Expands a task’s command, resolving any @task references into the commands
of the referenced task (recursively), and returns a flattened command ready
to run. Reference cycles are detected and reported as errors.
A bare string command with no reference is returned unchanged so simple tasks keep their single-command behaviour (including notifications). Anything that contains a reference, or is an array, flattens to an array of shell commands. Variable substitution is applied later, by the caller.