T
Task2w ago
trim21

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
andreynering
andreynering2w ago
Hi @trim21, Take a look at the special variables, specially ROOT_DIR, TASKFILE_DIR and USER_WORKING_DIR. https://taskfile.dev/reference/templating/#special-variables
trim21
trim212w ago
thanks
Want results from more Discord servers?
Add your server