TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.94k stars 178 forks source link

Support multiple local.class values #349

Closed indigoviolet closed 3 years ago

indigoviolet commented 3 years ago

Thank you for yadm, it's pretty sweet!

Is your feature request related to a problem? Please describe.

If I have three similar (in os, distro etc) machines (say A, B, C), and want to:

Then it gets tricky:

Describe the solution you'd like

If each machine could get multiple local.class values, ie. more like tags or roles, then I could set machines A and B to have the classes A,AB,ABC and B,AB,ABC. C would get the classes C,ABC.

The ##c.foo rule would match if foo were among the classes on the machine.

Describe alternatives you've considered

The alternative would be to support OR conditions in ##c.{} etc, but since this syntax would be messy, and the default template condition can't handle ORs either, it would be better to enumerate the subsets and support multiple local.class values like I have suggested above.

Additional context

[Add any other context or screenshots about the feature request here.]

rasa commented 3 years ago

See related #185 and #304.

indigoviolet commented 3 years ago

Ah, sorry about the duplicate. I'll close this.