1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

Allow global variables in the Taskfile

Closes #66
This commit is contained in:
Andrey Nering
2018-03-04 15:39:14 -03:00
parent 975f262ac0
commit 1a3df08aca
6 changed files with 23 additions and 9 deletions

View File

@@ -109,9 +109,10 @@ func (e *Executor) setup() error {
}
case version.IsV2(v):
e.Compiler = &compilerv2.CompilerV2{
Dir: e.Dir,
Vars: e.taskvars,
Logger: e.Logger,
Dir: e.Dir,
Taskvars: e.taskvars,
TaskfileVars: e.Taskfile.Vars,
Logger: e.Logger,
}
if !e.Silent {