T
Task3mo 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
andreynering3mo 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
trim21OP3mo ago
thanks
Want results from more Discord servers?
Add your server