1
0
mirror of https://github.com/go-task/task.git synced 2025-03-31 22:05:19 +02:00
task/internal/compiler/compiler.go
2021-01-12 12:03:04 -03:00

15 lines
444 B
Go

package compiler
import (
"github.com/go-task/task/v3/taskfile"
)
// Compiler handles compilation of a task before its execution.
// E.g. variable merger, template processing, etc.
type Compiler interface {
GetVariables(t *taskfile.Task, call taskfile.Call) (*taskfile.Vars, error)
FastGetVariables(t *taskfile.Task, call taskfile.Call) (*taskfile.Vars, error)
HandleDynamicVar(v taskfile.Var, dir string) (string, error)
ResetCache()
}