Feature: Add targeting for groups in regular commands
LordMike opened this issue · 3 comments
So f.ex. today, we can do: mu st repo:repo1,repo2
.. But we cannot add repo1, repo2
to a group x
, and then do mu st repo:x
.
I suggest that the repo:
filter should first check for repositories by name, and if they don't exist, check for groups of the same name. If not already the case, groups should not be allowed to be named the same as repositories.
This will also allow me to do: mu st repo:x,other-repo
to target repo1, repo2 and other-repo
.
Would you be interested in providing a pull request for this?
Should be straightforward -- adding this would probably touch https://github.com/fabioz/mu-repo/blob/master/mu_repo/__init__.py#L146 and https://github.com/fabioz/mu-repo/blob/master/mu_repo/__init__.py#L211