Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(task): add support for task wildcards #27007

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marvinhagemeister
Copy link
Contributor

@marvinhagemeister marvinhagemeister commented Nov 22, 2024

This PR adds support for passing wildcard tasks. All matched tasks are sorted in case they have dependencies. Tasks already in the dependency tree will be pruned so that every task only runs once.

{
  "tasks": {
    "foo-1": "echo 'foo-1'",
    "foo-2": "echo 'foo-2'"
  }
}
$ deno task foo-*
Task foo-1 echo 'foo-1'
foo-1
Task foo-2 echo 'foo-2'
foo-2

The changes in the PR look a little bigger than they really are due to formatting. For the most part, I've only needed to hoist up the task matching logic.

Related #26944

@bartlomieju bartlomieju added this to the 2.2.0 milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants