mirror of
https://github.com/denoland/deno.git
synced 2025-02-01 12:16:11 -05:00
c44b05cab5
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. ```json { "tasks": { "foo-1": "echo 'foo-1'", "foo-2": "echo 'foo-2'" } } ``` ```sh $ 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. Closes https://github.com/denoland/deno/issues/26944 Closes https://github.com/denoland/deno/issues/21530 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> |
||
---|---|---|
.. | ||
bench | ||
coverage | ||
doc | ||
init | ||
jupyter | ||
lint | ||
registry | ||
repl | ||
run | ||
test | ||
check.rs | ||
clean.rs | ||
compile.rs | ||
doc.rs | ||
fmt.rs | ||
info.rs | ||
installer.rs | ||
mod.rs | ||
serve.rs | ||
task.rs | ||
upgrade.rs |