Skip to content
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

fix: status-checks should respect task and global silent-mode #1107

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

danquah
Copy link
Contributor

@danquah danquah commented Apr 4, 2023

As discussed in #546 this pull-request updates the condition surrounding the "up to date" message emitted from the status-check to now also respect the task-level silence flag. It also allows the user to switch off silence via the Verbose flag.

I view this more as a fix than a new feature so I have not added any documentation. I'll be happy to do so if it is deemd nessecary.

@andreynering andreynering linked an issue Apr 6, 2023 that may be closed by this pull request
@@ -141,7 +141,7 @@ func (e *Executor) RunTask(ctx context.Context, call taskfile.Call) error {
}

if upToDate && preCondMet {
if !e.Silent {
if e.Verbose || (!t.Silent && !e.Taskfile.Silent && !e.Silent) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this was already being respected for the --silent, but not for the Taskfile or task level attribute.

One more reason to proceed in name of consistency. 🙁

@andreynering
Copy link
Member

Thanks for contributing @danquah!

@andreynering andreynering merged commit 1b30c9d into go-task:master Apr 6, 2023
andreynering added a commit that referenced this pull request Apr 6, 2023
@pd93 pd93 mentioned this pull request Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make silent flag also hide "is up to date" logs
2 participants