2018-02-17 20:12:41 +02:00
|
|
|
package compiler
|
|
|
|
|
|
|
|
import (
|
2020-08-19 10:59:58 +02:00
|
|
|
"github.com/go-task/task/v3/taskfile"
|
2018-02-17 20:12:41 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Compiler handles compilation of a task before its execution.
|
|
|
|
// E.g. variable merger, template processing, etc.
|
|
|
|
type Compiler interface {
|
2020-03-29 21:54:59 +02:00
|
|
|
GetVariables(t *taskfile.Task, call taskfile.Call) (*taskfile.Vars, error)
|
2021-01-07 16:17:38 +02:00
|
|
|
HandleDynamicVar(v taskfile.Var, dir string) (string, error)
|
2021-01-05 16:19:34 +02:00
|
|
|
ResetCache()
|
2018-02-17 20:12:41 +02:00
|
|
|
}
|