mirror of
https://github.com/go-task/task.git
synced 2025-01-08 04:04:08 +02:00
aab51c331f
- also rewrite 'interface{}' as 'any'
21 lines
534 B
Go
21 lines
534 B
Go
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
|
|
}
|