moroshko / react-scanner

Extract React components and props usage from code.
MIT License
563 stars 40 forks source link

Added --silent flag to silence console logging. #60

Open jake-chapman-mark43 opened 1 year ago

jake-chapman-mark43 commented 1 year ago

Building a cli tool for some stuff at work, and the output is messing with our output. Added a simple --silent flag to silence any of the logging. Not sure your exact thoughts on --silent suppressing the console.error, I've seen libs do either silence everything or have a separate log-level and a silence-errors option.

Works for what I need, but if you have any feedback or suggestions on something a little more flexible, I'm all ears.

oAllanWeb commented 7 months ago

@jake-chapman-mark43 @moroshko I liked the solution, do we have a forecast for a version with this?