Add ROOT_DIR and TASKFILE_DIR special variables

Closes #215
This commit is contained in:
Andrey Nering
2022-09-03 18:14:54 -03:00
parent 1a0cc1d64d
commit f45dd11e53
9 changed files with 128 additions and 8 deletions

View File

@@ -144,6 +144,7 @@ func Taskfile(readerNode *ReaderNode) (*taskfile.Taskfile, error) {
task.Dir = filepathext.SmartJoin(dir, task.Dir)
task.IncludeVars = includedTask.Vars
task.IncludedTaskfileVars = includedTaskfile.Vars
task.IncludedTaskfile = &includedTask
}
}

View File

@@ -26,6 +26,7 @@ type Task struct {
Run string
IncludeVars *Vars
IncludedTaskfileVars *Vars
IncludedTaskfile *IncludedTaskfile
}
func (t *Task) Name() string {