Skip to content

Commit b5b2649

Browse files
committed
Fix broken --status flag
Fixes #139
1 parent 318f9b2 commit b5b2649

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

status.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
// Status returns an error if any the of given tasks is not up-to-date
1313
func (e *Executor) Status(calls ...taskfile.Call) error {
1414
for _, call := range calls {
15-
t, ok := e.Taskfile.Tasks[call.Task]
16-
if !ok {
17-
return &taskNotFoundError{taskName: call.Task}
15+
t, err := e.CompiledTask(call)
16+
if err != nil {
17+
return err
1818
}
1919
isUpToDate, err := isTaskUpToDate(e.Context, t)
2020
if err != nil {

0 commit comments

Comments
 (0)