1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

21 lines
534 B
Go
Raw Normal View History

package fingerprint
import (
"context"
"github.com/go-task/task/v3/taskfile"
)
// StatusCheckable defines any type that can check if the status of a task is up-to-date.
type StatusCheckable interface {
IsUpToDate(ctx context.Context, t *taskfile.Task) (bool, error)
}
// SourcesCheckable defines any type that can check if the sources of a task are up-to-date.
type SourcesCheckable interface {
IsUpToDate(t *taskfile.Task) (bool, error)
Value(t *taskfile.Task) (any, error)
OnError(t *taskfile.Task) error
Kind() string
}