Expand description
Task output reference processing.
Handles detection and resolution of #TaskOutputRef structs in task JSON.
These structs are produced by CUE when tasks reference another task’s
stdout, stderr, or exitCode fields.
§Processing Pipeline
- CUE evaluates
tasks.tmpdir.stdout→{ cuenvOutputRef: true, cuenvTask: "tmpdir", cuenvOutput: "stdout" } process_output_refswalks raw JSON, replaces ref objects with placeholder strings- Task deserialization sees plain strings in
args/env(Vec<String>) OutputRefResolver::resolvereplaces placeholder strings with actual values before execution
Structs§
- Output
RefResolver - Context for resolving task output reference placeholders at runtime.
- Task
Output Ref - A parsed task output reference.
Enums§
- Task
Output Field - Which output field of a task is being referenced.
Functions§
- has_
output_ refs - Returns
trueif any string inargsorenvcontains an output ref placeholder. - parse_
passthrough - Parse a passthrough placeholder string, returning the host var name.
- process_
output_ refs - Process task output references in raw JSON before deserialization.
Type Aliases§
- Output
RefDep - A dependency pair: (task_that_references, task_being_referenced).