-
Notifications
You must be signed in to change notification settings - Fork 220
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
Reduce the noise #78
Comments
Hi @nikolay, thank you for feedback. |
Yes, keep the default "as is", but add options to limit the output as, honestly, I personally don't mind more info, but I know some people will be bothered and this can affect the adoption. It would be much easier for me to get buy-in if there's change-relevant output only. |
Agreed. Usually I use I understand that it's not a lefthook's fault, but WS's. However I would much appreciate an option like (Anyway, thanks for the fast tool. I really like how it feels that it works at least 4 times faster than husky + lint-staged.) |
I think about modular output, like this one: output:
- meta #(version and which hook running)
- failures #(output from runners with exit code nonzero)
- success #(output from runners with exit code 0)
- summary #(summary block) |
Thank you, @Arkweid! This looks granular enough! |
I think, it can be great to add |
That make sense. |
Would be nice if it would be possible to configure the output via ENV. And have an option to output summary only in case of failures only. Perfectly as one-liner. Right now it's kinda very difficult to use lefthook with |
Other projects have solved this by adding an issue template reminding users to report their current version when posting an issue. That might be a less noisy way to achieve what you want here. |
@thieman Yes. This is a tool for people who use Git, so, it is assumed that if they know how to use git, they can find the version of a CLI tool easily. |
Yep - would be great to see this done too. |
Modular output merged in master. skip_output:
- meta #(version and which hook running)
- success #(output from runners with exit code 0) |
Is there any chance that there will be an option to configure it via ENV vars, e.g. |
@ixti Yea, why not. PR always welcome :) |
I have strong negative feelings about the log output of lefthook. 👀 Can we get a (I don't know Go, or I would contribute) |
There's too much noise:
This is good for debugging purposes, but if you have tens of different commands and just changed a single file, seeing all this is not signal, but noise. Showing the program and the version number is unnecessary either (if one cares, they can see that with
lefthook version
).The text was updated successfully, but these errors were encountered: