atom / watcher

Atom Filesystem Watcher
MIT License
200 stars 36 forks source link

Add a CLI #180

Closed nono closed 5 years ago

nono commented 5 years ago

Description of the Change

The CLI can be used like this:

$ watcher path/to/watch

Alternate Designs

I've tried to do something simple, with no external dependencies. An alternative would be to copy chokidar-cli, with more options. But if we want to go in this direction, it'd better to do that outside of this repository, and in a new npm package.

Benefits

It should help for testing @atom/watcher and reporting issues.

Possible Drawbacks

It will be one more file in the npm package, and the script may have to be maintained in the future.

Applicable Issues

N/A

smashwilson commented 5 years ago

Oh, one more thing - would you mind adding a section to the README about this as well?

nono commented 5 years ago

I've fixed the lint (I've used prettier instead of standard the first time), and I've added a paragraph in the README. I think it's ready to be merged if the CI is Okay.

smashwilson commented 5 years ago

:tada: