mateodelnorte / meta

tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?
MIT License
2.03k stars 95 forks source link

How to make meta to run only on child repositories and not on the root meta repo itself? #285

Closed khelkun closed 2 years ago

khelkun commented 2 years ago

🤓 Question

meta runs in all child repositories but also first run on the root repository e.g the meta repository itself.

I can imagine why this is the default aim of meta but I wish I could avoid this and just make meta to run in all the child repositories declared in the .meta but not on the meta repository itself. Is there a way to do that please?

patrickleet commented 2 years ago

assuming your meta repo is named "meta"

meta exec "pwd" --exclude "meta"
patrickleet commented 2 years ago

or from the root of the meta repo, find the name of it programatically

meta exec "pwd" --exclude $(basename `pwd`)
khelkun commented 2 years ago

thanks @patrickleet, this works all my meta commands.

I don't see this --exclude option in the README, and actually I don't see where it's implemented.

Is there others meta command options not documented in the README? Where those options are implemented?

For example I wonder if meta has an option like --projects-file=.meta-myprojects.

mateodelnorte commented 2 years ago

meta inherits from https://github.com/mateodelnorte/loop. As such, any options you can pass to loop can also be passed to meta.

On Fri, Oct 29, 2021 at 3:01 AM Sébastien PERIN @.***> wrote:

thanks @patrickleet https://github.com/patrickleet, this works all my meta commands.

I don't see this --exclude option in the README, and actually I don't see where it's implemented.

Is there others meta command options not documented in the README? Where those options are implemented?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mateodelnorte/meta/issues/285#issuecomment-954517800, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEHOXZPNZEAO4NICREWNCTUJJPHVANCNFSM5G5M6YUA .