task icon indicating copy to clipboard operation
task copied to clipboard

Add posibility to include by dotenv

Open antonio-antuan opened this issue 2 years ago • 0 comments

Hi! I want to include taskfiles by dotenv var. For now I see that it is not possible because dotenv read when files already included...

.env:

TASKFILE_PATH=./child

Taskfile.yml:

version: '3'

dotenv:
  - .env

includes:
  child: 
    taskfile: $TASKFILE_PATH/Taskfile2.yml
    optional: true
    dir: $TASKFILE_PATH

Taskfile2.yml:

version: '3'

tasks:
  default:
    cmds:
      - echo child

Also, it is not possible for now to include with env variable: Taskfile.yml:

version: '3'

env:
  TASKFILE_PATH: Taskfile2.yml

includes:
  child: 
    taskfile: $TASKFILE_PATH
    optional: true

antonio-antuan avatar Oct 12 '21 08:10 antonio-antuan