Skip to content

Execute task from sibling task file #1578

Answered by pd93
konsalex asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @konsalex, you can refer to the root Taskfile by prefixing a task name with :. From here, you can then give the include path to your SSL task. For example:

# Example tests/Taskfile.yml
version: '3'

tasks:
  run:
    cmds:
      - task: :ssl:generate

This is briefly mentioned as a tip in our docs.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@pd93
Comment options

pd93 Apr 4, 2024
Maintainer

Answer selected by konsalex
@pd93
Comment options

pd93 Apr 4, 2024
Maintainer

@konsalex
Comment options

@pd93
Comment options

pd93 Apr 4, 2024
Maintainer

@konsalex
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants