task icon indicating copy to clipboard operation
task copied to clipboard

Add support to alias included default task

Open tylermmorton opened this issue 4 years ago • 0 comments

This PR addresses the issue brought up in #661. I've also updated the docs and added test coverage!

Included Taskfiles that declare a default task will be aliased automatically to their namespace only if there is not a conflicting task in the parent Taskfile.

version: '3'
includes:
  docker: ./DockerTasks.yml
tasks:
  deploy:
    - task: docker # will run docker:default

...

version: '3'
includes:
  docker: ./DockerTasks.yml
tasks:
  docker: # declaring `docker` will prevent the above behavior
    cmds:
      - task: docker:default # but the default task can still be used

tylermmorton avatar Jan 29 '22 15:01 tylermmorton