-
-
Notifications
You must be signed in to change notification settings - Fork 284
-
-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Respect --quiet
/-q
cli flag
#1202
Comments
--quiet
/-q
cli flag--quiet
/-q
cli flag
Thanks for the good write-up. What would you expect the output to be with |
I think it is best to mirror the behaviour of the Though, that aside, just as a cli user I'd expect:
The specific problem I'm trying to solve is that, when the system is already up to date with the brewfile,
|
Agreed. I think the @maxcbc Do you want to give this a go implementing it yourself? Happy to provide review and help on a partially working/CI failing draft PR? |
@MikeMcQuaid Sure. It'll probably be a few weeks before I can get to it, but a good opportunity to refresh my ruby skills. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'd like this as well. |
Let us know if you made some progress and stuck on something! |
Taking a look at this, there are 61 places we're using puts instead of calling a logging function. @MikeMcQuaid Is there a reason not to use |
Work toward Homebrew#1202, but untested. I did this commit in a codespace that is flailing.
@colindean Yes. We should be using |
Problem
Homebrew bundle has quite verbose output at times, such as the
Using package_x
output (source) when runningbrew bundle install
.brew bundle --help
lists the standard homebrew--quiet
/-q
flag in its output, which is intended for use cases where the user wishes to suppress extraneous output. Currently homebrew bundle does not appear to respect this flag.My Usecase
I use homebrew bundle as part as my standard dotfiles setup to maintain a consistent development setup across multiple macos devices and to minimise disaster recovery time.
As part of this, I run
brew install --global --quiet --cleanup
on every call tobrew
which would potentially change the state of my brewfile.I'd like the
--quiet
flag to reduce the output from this command, so that it only tells me if it is installing/uninstalling packages/casks from my system.Solution
Update homebrew bundle to respect the
--quiet
/-q
flag by replacing relevant direct calls toputs
with a custom log function which acts as a noop if the flag is active.The text was updated successfully, but these errors were encountered: