-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Is your feature request related to a problem? Please describe
targets are a useful way to define named groups of projects, for example all projects with a certain set of tags. However, I believe that currently those targets can only be referenced "statically" in the Mani config for a task, to control which projects that task applies to.
It would be useful to be able to select the projects to operate on from the command line when executing mani
, referencing the targets defined in the Mani config.
Describe the solution you'd like
In much the same way that mani
currently supports selecting the projects to operate on via the --projects
, --paths
and --tags
command line arguments, it could have a --targets
option to reference the targets declared in the config and run the specified tasks/commands on those projects, eg when using the run
or exec
command.
Additional context
A similar case could be made for specs, which are named groups of config that alter task execution and output. It would be handy to have a --spec
command line argument for mani
, to select which spec to apply.