Support global `--quiet` flag
Categories
(Firefox Build System :: Mach Core, enhancement)
Tracking
(Not tracked)
People
(Reporter: ahal, Assigned: ahal)
Details
Attachments
(1 file)
There's a use case where I'd like to hook ./mach lint
up to a tool that passes a file on stdin, and expects the fixed version of said file on stdout. The problem is that if mach logs anything to stdout, it'll end up being added to the front of the file ><
I wrote a patch that adds a --quiet
flag which suppresses the virtualenv creation logs, and changes the log level to ERROR. In the end, I realized that this still isn't good enough for my use cases, because someone could add some print debugging or the like. Instead I ended up writing a script that wraps ./mach lint
and redirects stdout -> stderr.
So technically, I don't need this anymore, but the patch is written and I think it's a good flag to include regardless. It would still be nice to have the ability for mach to be less verbose in certain situations.
Assignee | ||
Comment 1•5 days ago
|
||
Description
•