-
Notifications
You must be signed in to change notification settings - Fork 176
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
#81 --quiet: prevent output of non-interactive commands #82
Conversation
Thanks for the PR, @possi. However, I am a little uncertain about merging this currently. Reasons being:
I think ideally the verbose output should be on stdout and warnings and errors on stderr. Then, the
|
I agree that the implementation is incomplete and could be optimized. But I don't think that you should use stderr for warnings. In my opinion only errors (which causes the the return code to be != 0) should be send to stderr. It is usual, that you can use a --quiet option to suppress all the default output, e.g. if you like to use it in a cronjob.
Explanation of my use case: PS. An alternative would be, to not output all "Applied"-Lines if there is no -v|--verbose-Option. |
Ok, I will concede that warnings could go to stdout if you prefer. I am against adding a verbose option to get the current behavior, though. Is it really necessary to use "repair"? I can't even remember the last time I actually needed to use this. I think since the time it was added there have been improvements so that the only time it should be needed is if a line is completely removed from the modman file but the file it points to is not, and the symlink that is left over is able to break something by being there unintentionally. |
Updated --quiet to affect more commands. About using repair: For product I usually use deploy-all, but while creating new modules, or updateting them I prefer repair --quiet to check if every of our dozen submodules are configured correctly. Also sometime it happens that we have to change |
@colinmollenhour could you merge this or there are some other things that prevent adding this super useful feature? |
Merged. |
Thanks! ❤️ |
@colinmollenhour sorry for interrupting you once again, but is there a chance to do a release with the merged code? There are quite few changes in the master branch since v1.12. I know that the official installation way does not require it, but there are other ways, like homebrew, which require versioning, to work properly. |
Sure, 1.13 tagged. |
#81