1
0
mirror of https://github.com/go-task/task.git synced 2025-06-04 23:38:05 +02:00

Fix broken --status flag

Fixes #139
This commit is contained in:
Andrey Nering 2018-10-06 17:55:23 -03:00
parent 318f9b216d
commit b5b2649283

View File

@ -12,9 +12,9 @@ import (
// Status returns an error if any the of given tasks is not up-to-date // Status returns an error if any the of given tasks is not up-to-date
func (e *Executor) Status(calls ...taskfile.Call) error { func (e *Executor) Status(calls ...taskfile.Call) error {
for _, call := range calls { for _, call := range calls {
t, ok := e.Taskfile.Tasks[call.Task] t, err := e.CompiledTask(call)
if !ok { if err != nil {
return &taskNotFoundError{taskName: call.Task} return err
} }
isUpToDate, err := isTaskUpToDate(e.Context, t) isUpToDate, err := isTaskUpToDate(e.Context, t)
if err != nil { if err != nil {