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

FR: allow a default watcherTask #4

Open
aspiers opened this issue Aug 30, 2021 · 2 comments
Open

FR: allow a default watcherTask #4

aspiers opened this issue Aug 30, 2021 · 2 comments

Comments

@aspiers
Copy link

aspiers commented Aug 30, 2021

Currently you always have to specify a watcherTask argument to hardhat watch:

yarn hardhat watch <watcherTask>

It would be nice if a default key could be set in the watcher config to make this argument optional. In the (presumably common) case where only one watcherTask is configured, this would save having to type that argument, and it would also allow hardhat watch to make something sensible to happen without having to first check which watcherTasks are defined in the config.

@xanderdeseyn
Copy link
Owner

Good idea, I'll ship it asap

@aspiers
Copy link
Author

aspiers commented Aug 31, 2021

Awesome 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