feat: inject task references and update HCL syntax #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Testing
go test ./...Prompt
Task 12: Injected Task References
Purpose:
Support direct use of defined tasks as variable-like references inside expressions or function calls, replacing the previous
task("...")function syntax with native injected task references.Requirements:
task.testinside expressions or interpolations must resolve to a Task reference object.task("name")function must be removed or deprecated in favor of direct references.Example:
Implementation Hints (Do Not Copy Code):
EvalContext).cty.ObjectVal(or similar) may be needed to supporttask.<name>resolution.Validation:
task.<name>in bothdepsandcmds.task("name")is removed.task.unknownshould return a proper error message with file/line context.HCLE2ETestwith a task that uses two others as dependencies and references them inside exec.https://chatgpt.com/codex/tasks/task_e_68925996cff08330a85d203a67b21ec5