hjson / hjson-js

Hjson for JavaScript
https://hjson.github.io/
MIT License
416 stars 49 forks source link

Consider adding -w mode to cli #23

Closed qm3ster closed 7 years ago

laktak commented 7 years ago

@qm3ster a description would help

qm3ster commented 7 years ago

Most conversion/translation libraries, when also shipping a cli interface, include a watch (-w) option, which doesn't quit after conversion, but instead watches the input file for changes and reapplies the conversion every time it's updated. You could use watch At a second glance, I think this would not work with stdout, since you have to rewrite the output file from the beginning, and would require a file output mode. Feel free to close this, and tell me if you'd like a pull request if I ever implement it. Also, jstransformer-cli (there is a jstransformer that uses your library) isn't currently providing that option either.

laktak commented 7 years ago

Thanks but as there are lots of tools available that provide this feature I don't want to reimplement it here.