Skip to content

Call multiple tasks from CLI and pass them to RunTarget #2470

@HofmeisterAn

Description

@HofmeisterAn

I used a lot of Gradle in the past. One of the most features I miss in Cake, is to run multiple tasks from CLI. In Gradle I could simple run .\gradlew clean build. In Cake I’m forced to use IsDependentOn, which does not make sense in every use case (I don’t want to run clean on every build).

It bothers me especial on my build environment (CI). It would be a lot easier to call multiple tasks in one stage. I think this would be a great feature and make Cake much better.

  1. Pass a list of arguments to RunTarget.
  2. Use the argument order and call every task including IsDependentOn tasks.
  3. Consider the tree dependency of the tasks, to order them as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions