-
Notifications
You must be signed in to change notification settings - Fork 465
Open
Open
Copy link
Labels
UXRelated to the User Experience of pixiRelated to the User Experience of pixiarea:tasksRelated to pixi tasksRelated to pixi tasksenhancementNew featuresNew features
Description
Instead of s: &str could this be s: TemplateString? so that the { task = "{{ a_task_name }}", ... } could be supported?
_Originally posted in
- feat: Support minijinja templates in arguments passed to depends-on #3668 (comment)_
- task args: allow passing args to
depends-on#3538 (comment)
I think the change is primarily in this section of the code.
Here is what it might look like in a pixi.toml.
[tasks.build]
args = [
{ arg = "pkg", default = "dummy" },
{ arg = "tgt_platform", default = "linux-64" }
]
cmd = [ ... ]
[tasks.build-force]
args = [
{ arg = "pkg", default = "dummy" },
{ arg = "tgt_platform", default = "linux-64" }
]
cmd = [ ... ]
[tasks.publish]
args = [
{ arg = "pkg", default = "dummy" },
]
cmd = [ ... ]
[task.for-each]
args = [
{ arg = "the_task", default = "build"},
{ arg = "tgt_platform", default = "linux-64"}
]
depends-on = [
{ task = "{{ the_task }}", args = ["foo", "{{ tgt_platform }}"],
...
]
[tasks.build-all]
depends-on = [ { task = "for-each", args = ["build"] } ]
[tasks.publish-all]
depends-on = [ { task = "for-each", args = ["publish"] } ]Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
UXRelated to the User Experience of pixiRelated to the User Experience of pixiarea:tasksRelated to pixi tasksRelated to pixi tasksenhancementNew featuresNew features