task icon indicating copy to clipboard operation
task copied to clipboard

Ability to use ROOT_DIR in includes

Open vmaerten opened this issue 2 years ago • 0 comments

Hi,

We have one taskfile at root level (Taskfile.vars.yml). We also have multiple Taskfile file in subdirectories (one per project) like this :

Taskfile.yaml
Taskfile.vars.yaml
code/
├── frontend/
│   └── Taskfile.yaml
└── backend/
    └── Taskfile.yaml

We want to include Taskfile.vars.yaml in all Taskfile.yaml. At the moment we are doing this:

version: '3'

includes:
	variables: ../../../Taskfile.vars.yaml

and we wanted to be able to do something like this:

version: '3'

includes:
	variables: {{.ROOT_DIR}}/Taskfile.vars.yaml

What do you think about this? Is there another to achieve this?

Thanks

vmaerten avatar Oct 16 '23 12:10 vmaerten