2021-01-07 16:17:38 +02:00
|
|
|
version: '3'
|
|
|
|
|
2021-01-09 17:09:23 +02:00
|
|
|
includes:
|
|
|
|
sub:
|
|
|
|
taskfile: subdirectory
|
|
|
|
dir: subdirectory
|
|
|
|
|
|
|
|
vars:
|
|
|
|
DIRECTORY: subdirectory
|
|
|
|
|
2021-01-07 16:17:38 +02:00
|
|
|
tasks:
|
|
|
|
default:
|
2021-01-09 17:09:23 +02:00
|
|
|
- task: from-root-taskfile
|
|
|
|
- task: sub:from-included-taskfile
|
|
|
|
- task: sub:from-included-taskfile-task
|
|
|
|
- task: from-interpolated-dir
|
|
|
|
|
|
|
|
from-root-taskfile:
|
2021-01-07 16:17:38 +02:00
|
|
|
cmds:
|
2021-01-09 17:09:23 +02:00
|
|
|
- echo '{{.TASK_DIR}}' > from_root_taskfile.txt
|
2021-01-07 16:17:38 +02:00
|
|
|
dir: subdirectory
|
|
|
|
vars:
|
2021-01-09 17:09:23 +02:00
|
|
|
TASK_DIR:
|
2021-01-07 16:17:38 +02:00
|
|
|
sh: basename $(pwd)
|
|
|
|
silent: true
|
2021-01-09 17:09:23 +02:00
|
|
|
|
|
|
|
from-interpolated-dir:
|
|
|
|
cmds:
|
|
|
|
- echo '{{.INTERPOLATED_DIR}}' > from_interpolated_dir.txt
|
|
|
|
dir: '{{.DIRECTORY}}'
|
|
|
|
vars:
|
|
|
|
INTERPOLATED_DIR:
|
|
|
|
sh: basename $(pwd)
|