capnfabs / grouse

A diff tool for Hugo static sites.
https://capnfabs.net/posts/grouse-diff-tool-hugo-static-site-generators/
MIT License
13 stars 2 forks source link

Add silent mode - Don't show progress messages #12

Closed scheeles closed 4 years ago

scheeles commented 4 years ago

To include it into a e.g. CI only the final diff result should be shown.

capnfabs commented 4 years ago

@scheeles thanks for this PR too! This usecase makes sense to me, I'm currently unsure if it makes more sense to implement this with a switch or to put the build stuff in stderr instead of stdout, so you can solve this with grouse [args] 2>/dev/null instead.

I'll think about it and either merge this or make the other change after the refactor I mentioned in #11 .

capnfabs commented 4 years ago

Alright; I separated diff output and everything else between stdout & stderr. This is also tested by the integration tests 🎉

You can test it out by building from dev branch; or otherwise I'll release a build later this week.