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

Ability to execute tasks by injecting Deno args #49

Closed
fkdiomande opened this issue Jun 17, 2022 · 2 comments
Closed

Ability to execute tasks by injecting Deno args #49

fkdiomande opened this issue Jun 17, 2022 · 2 comments

Comments

@fkdiomande
Copy link

Task definition by injecting ${Deno.args[0]}:

{
  "tasks": {
    "test:watch": "deno test --watch -A --unstable ${Deno.args[0]}"
  }
}

and run task:

deno task test:watch MyDirectory

@fkdiomande fkdiomande changed the title Ability to execute tasks by injecting Ability to execute tasks by injecting Deno args Jun 17, 2022
@bartlomieju
Copy link
Member

You can achieve this by doing deno task test:watch -- MyDirectory

@fkdiomande
Copy link
Author

This deno task test:watch -- MyDirectory does not works. But I succeeded with deno task test:watch MyDirectory

Thanks

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

No branches or pull requests

2 participants