MCPcopy
hub / github.com/go-task/task / IsUpToDate

Method IsUpToDate

internal/fingerprint/status.go:22–36  ·  view source on GitHub ↗
(ctx context.Context, t *ast.Task)

Source from the content-addressed store, hash-verified

20}
21
22func (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}

Callers

nothing calls this directly

Calls 3

RunCommandFunction · 0.92
GetFunction · 0.92
VerboseOutfMethod · 0.80

Tested by

no test coverage detected