Add Preconditions to Tasks

This commit is contained in:
Stephen Prater
2019-05-17 13:13:47 -07:00
parent 6ff9ba9df9
commit bd5882f0f0
14 changed files with 375 additions and 21 deletions

View File

@@ -78,8 +78,10 @@ func (e *Executor) isTaskUpToDateStatus(ctx context.Context, t *taskfile.Task) (
Env: getEnviron(t),
})
if err != nil {
e.Logger.VerboseOutf("task: status command %s exited non-zero: %s", s, err)
return false, nil
}
e.Logger.VerboseOutf("task: status command %s exited zero", s)
}
return true, nil
}