(ctx context.Context, t *ast.Task)
| 20 | } |
| 21 | |
| 22 | func (checker *StatusChecker) IsUpToDate(ctx context.Context, t *ast.Task) (bool, error) { |
| 23 | for _, s := range t.Status { |
| 24 | err := execext.RunCommand(ctx, &execext.RunCommandOptions{ |
| 25 | Command: s, |
| 26 | Dir: t.Dir, |
| 27 | Env: env.Get(t), |
| 28 | }) |
| 29 | if err != nil { |
| 30 | checker.logger.VerboseOutf(logger.Yellow, "task: status command %s exited non-zero: %s\n", s, err) |
| 31 | return false, nil |
| 32 | } |
| 33 | checker.logger.VerboseOutf(logger.Yellow, "task: status command %s exited zero\n", s) |
| 34 | } |
| 35 | return true, nil |
| 36 | } |
nothing calls this directly
no test coverage detected