version: '3'

includes:
  included: ./included
  included_taskfile: ./Taskfile2.yml
  included_without_dir:
    taskfile:  ./module1
  included_taskfile_without_dir:
    taskfile:  ./module1/Taskfile.yml
  included_with_dir:
    taskfile:  ./module2
    dir:  ./module2
  included_taskfile_with_dir:
    taskfile:  ./module2/Taskfile.yml
    dir:  ./module2
  included_os: ./Taskfile_{{OS}}.yml

tasks:
  default:
    cmds:
      - task: gen
      - task: included:gen
      - task: included_taskfile:gen
      - task: included_without_dir:gen_file
      - task: included_taskfile_without_dir:gen_dir
      - task: included_with_dir:gen_file
      - task: included_taskfile_with_dir:gen_dir
      - task: included_os:gen

  gen:
    cmds:
      - echo main > main.txt
