You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
status: reference docs don't clarify its usage #2752
https://taskfile.dev/docs/reference/schema#status describes a method for detecting whether a task should run or be skipped. Unfortunately it doesn't describe how task uses the output of the specified status command.
Based on the example provided, I can guess the idea is that if the status command has a RC of 0 the task is skipped, and if it does not the task is run, but the documentation doesn't say this. Without the example one could also imagine other behaviors:
run task if status command produces output on stdout
run task if status command produces output that differs from the last invocation
run task if status command produces output on stderr, ignoring RC
I suggest clarifying intent so that it may be understood without having to infer it from the example.
Activity
trulede commentedon Mar 19, 2026
The schema documentation is only concerned with the schema itself (its structure) and not its behaviour.
The documentation you want is here:
https://taskfile.dev/docs/guide#using-programmatic-checks-to-indicate-a-task-is-up-to-date