mirror of
https://github.com/go-task/task.git
synced 2024-12-12 10:45:49 +02:00
59d2733b88
It was always running in the main Taskfile dir, even when the variable was declared in an included taskfile in another directory or when task had a custom dir. Closes #384
14 lines
364 B
Go
14 lines
364 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)
|
|
HandleDynamicVar(v taskfile.Var, dir string) (string, error)
|
|
ResetCache()
|
|
}
|