1
0
mirror of https://github.com/go-task/task.git synced 2025-02-03 13:22:11 +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
func (e *Executor) Status(calls ...taskfile.Call) error {
for _, call := range calls {
t, ok := e.Taskfile.Tasks[call.Task]
if !ok {
return &taskNotFoundError{taskName: call.Task}
t, err := e.CompiledTask(call)
if err != nil {
return err
}
isUpToDate, err := isTaskUpToDate(e.Context, t)
if err != nil {