1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

fix: taskfile directory (#1530)

* fix: taskfile directory

* tests: add tests for special vars when running from a subdirectory
This commit is contained in:
Pete Davison
2024-03-04 05:34:44 -06:00
committed by GitHub
parent 60d20c042e
commit 3c05c9c6e1
6 changed files with 55 additions and 43 deletions

View File

@@ -8,5 +8,6 @@ includes:
tasks:
print-task: echo {{.TASK}}
print-root-dir: echo {{.ROOT_DIR}}
print-taskfile: echo {{.TASKFILE}}
print-taskfile-dir: echo {{.TASKFILE_DIR}}
print-task-version: echo {{.TASK_VERSION}}

View File

@@ -3,5 +3,6 @@ version: '3'
tasks:
print-task: echo {{.TASK}}
print-root-dir: echo {{.ROOT_DIR}}
print-taskfile: echo {{.TASKFILE}}
print-taskfile-dir: echo {{.TASKFILE_DIR}}
print-task-version: echo {{.TASK_VERSION}}

0
testdata/special_vars/subdir/.gitkeep vendored Normal file
View File