Skip to content

Allow named args in depends-onΒ #3536

@bollwyvl

Description

@bollwyvl

Problem description

per #3533 (comment):

Also, the list-based depends-on.*.args list seems like it might be challenging to reason about above a certain level of complexity, and might benefit from allowing explicitly naming the args being set:

[tasks.foo-one--]
args = [{ "arg" = "bar" }]
cmd = "echo built {{ bar }} > bar/{{ bar }}.txt"
inputs = ["foo/{{ bar }}/"]
outputs = ["bar/{{ bar }}.txt"]

[tasks.foo-all]
depends-on = [
  { task = "foo-one--", args = {bar="baz"} },
  { task = "foo-one--", args = {bar="boo"} },
]

Metadata

Metadata

Assignees

Labels

area:tasksRelated to pixi tasks

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions