dotenv inside included Taskfile
From docs: "Please note that you are not currently able to use the dotenv key inside included Taskfiles."
Are there any plans to implement this, please? Especially when using dotenv on task level in included Taskfile works:
included Taskfile:
I am trying to use Taskfile in monorepo where "apps" have their own .env in their context (folders) as well as a Taskfile.
Thanks.
2 Replies
GitHub
Ability to use the dotenv key inside included Taskfiles · Issue #10...
Currently the dotenv key cannot be used inside included Taskfiles. Doing so gives the following error: Included Taskfiles can't have dotenv declarations. Please, move the dotenv declaration to ...
GitHub
feat: add task-level dotenv support by pd93 · Pull Request #904 · g...
This PR adds support for the task-level dotenv key - A much requested feature.
The key works much the same as it does at a global level:
version: '3'
tasks:
default:
dotenv: ...
Thank you