You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where I run these tasks like so: deno task test:watch <mytest> (run a specific test, and watch for changes) or deno task test (run the whole test suite). In both cases though, I sometimes want to run the command with a specific test in mind, and other times the whole test suite. Since there is no mechanism for default args in deno, this would mean creating separate commands for each of these workflows:
deno task test:all # run the whole test suite
deno task test tests/mod.test.ts # run a specific test
deno task test:watch tests/mod.test.ts # run a specific test and watch for changes
deno task test:watch:all # run the whole test suite and watch for changes
This means a ton of boilerplate for what is essentially two different commands. What I would like to propose is a way to define default args for a task when args are not specified:
deno task test# run the whole test suite
deno task test tests/mod.test.ts # run a specific test
deno task test:watch tests/mod.test.ts # run a specific test and watch for changes
deno task test:watch # run the whole test suite and watch for changes
The text was updated successfully, but these errors were encountered:
Hi all, I often find myself writing task scripts like so:
where I run these tasks like so:
deno task test:watch <mytest>
(run a specific test, and watch for changes) ordeno task test
(run the whole test suite). In both cases though, I sometimes want to run the command with a specific test in mind, and other times the whole test suite. Since there is no mechanism for default args in deno, this would mean creating separate commands for each of these workflows:so that I can use them like so:
This means a ton of boilerplate for what is essentially two different commands. What I would like to propose is a way to define default args for a task when args are not specified:
which can be used like so:
The text was updated successfully, but these errors were encountered: