mirror of
https://github.com/go-task/task.git
synced 2025-06-04 23:38:05 +02:00
parent
318f9b216d
commit
b5b2649283
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user