Skip to content

Add "imports" or "includes" #98

@JulienBreux

Description

@JulienBreux

Hi,

Request

Add the possibility to use import or includes to imports some others tasks.
With the default strategy as namespace.

Example

File: docker/v1.0/Taskfile.yaml

version: "2"

task:
  build:
    cmds:
      - docker build...

File: go/v1.0/Taskfile.yaml

version: "2"

task:
  build:
    cmds:
      - go build ...

File (in my project): Taskfile.yaml

imports:
  docker: https://.../docker/v1.0/Taskfile.yaml
  go: file://.../go/v1.0/Taskfile.yaml

— or —

includes:
  docker: https://.../docker/v1.0/Taskfile.yaml
  go: file://.../go/v1.0/Taskfile.yaml

task:
  build:
    - task: "docker:build"
    - task: "go:build"

How to use?

task go:build go:docker

— or —

task build

Finally

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions