mirror of
https://github.com/go-task/task.git
synced 2025-01-12 04:34:11 +02:00
13 lines
346 B
Go
13 lines
346 B
Go
package compiler
|
|
|
|
import (
|
|
"github.com/go-task/task/v2/internal/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)
|
|
HandleDynamicVar(v taskfile.Var) (string, error)
|
|
}
|