your-tools / ruplacer

Find and replace text in source files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request : add 'quiet' option

kpym opened this issue · comments

It will be nice to have -q/--quiet option to use in conjunction with --go. Or may be --qgo (for "quiet go").

I prefer a separate --quiet argument - this is consistent with many other tools.

Do you want to try and submit a patch ?

@dmerejkowsky I would love to, but rust is not part of my skill set, sorry. 😳

Well, turned out it was a bit more difficult than I though it would be.

Also, fun fact, while working on this feature I messed up my working copy by running ruplacer --go --quiet with the wrong folder. So ... be careful with the combination of the two options ;)

Anyhow, this has been implement in the 0.7.0 release. Enjoy!

Thanks for considering this and do it so quickly. 🙏
I was thinking that this will be as simple to replace stdout by null and keep stderr as is... but it is never as simple as we think. 😉