-
-
Notifications
You must be signed in to change notification settings - Fork 624
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
Add output: group_error_only
output mode
#664
Comments
Hi @jaedle, Some thoughts on this... To me, the behavior you're describing is very similar to using https://taskfile.dev/#/usage?id=output-syntax An additional option specific to this would kinda be incompatible with So, I feel that the right direction here would probably to have a variant of Does this makes sense? |
Hi @andreynering, after carefully reading the documentation I think this would be a perfect fit for another output type. If you don’t mind, I could have a look at how to implement this. I will also try to figure out a clearer naming. |
Ability to hide success output is really desirable and probably having a new group for it would be ok. |
Why is it desirable to hide success output? |
Let’s assume you have a verbose build tool. When you run that tool and everything goes right, I am not interested in that output. (I usually treat warnings as errors.) If something goes wrong during the build I guess those logs are valuebale. |
Thank you for the explanation. I agree. |
output: group_error_only
output mode
Implemented on #1022. |
Hey 👋
I'm still a huge fan of task and I am using it quite heavily, so thanks for your effort! 👍 👏
If my motivation or details about this proposal seem to be unclear, please feel free to ask. If we agree on the details and edge-cases, it would a pleasure to implement this myself 😎
Feature description
I would like to propose a new feature in order to make my console output less verbose in case of re-occurring tasks:
Many of my taskfiles have a lot of tasks involved for some kind of workflow.
The output of single tasks is (mostly) not relevant for me if nothing errors, but is very relevant if it does (i.e. a failing test).
In order to keep my console clean and focus on potentially important messages I would like to have the chance to drop the stdout/stderr of command, if it does not error. If it errors the whole output should be shown.
Current
Proposal for happy execution (output swallowed)
All output is swallowed as not relevant because of no errors.
Proposal for execution with errors (output shown for failing task)
Let's assume that the tests are broken in this example.
Proposal
I would like to add a configuration parameter such as
show_output
which could bealways
(default),on_error
ornever
.This should not break the current behavior as the default would be
always
.Example Taskfile + executions
I would also prefer to have a global parameter to configure the default behavior in regard of the output like
silent
.The text was updated successfully, but these errors were encountered: