variable for current taskfile?
Is there a variable can be used in taskfile works like
__dirname
in js , which is the directory of current taskfile.yaml
?
for example, when CWD= /home/user/src/project1/internal/
, running task with /home/user/src/project1/taskfile.yaml
, a variable for /home/user/src/project1/
2 Replies
Hi @trim21,
Take a look at the special variables, specially
ROOT_DIR
, TASKFILE_DIR
and USER_WORKING_DIR
.
https://taskfile.dev/reference/templating/#special-variablesthanks