fastify-cli
fastify-cli copied to clipboard
Add CLI option to specify directory or file to watch in watch mode
This PR introduces a new option to the CLI watch mode that allows users to specify a directory or file to watch for changes. This enhancement addresses issue #787.
The option are --follow-watch for example
fastify start --followWatch plugins/support.js --watch .
Checklist
- [x] run
npm run testandnpm run benchmark - [x] tests and/or benchmarks are included
- [x] documentation is changed or added
- [x] commit message and code follows the Developer's Certification of Origin and the Code of conduct