pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Add —group CLI flag

Open Fizzadar opened this issue 4 years ago • 3 comments

Add all inventory hosts to this group.

Fizzadar avatar Nov 13 '21 11:11 Fizzadar

Maybe do "--groups" instead so you can specify multiple groups. Would be smart to implement both in one go instead of having to come back when someone asks for it.

skutter-de avatar Nov 14 '21 12:11 skutter-de

Maybe do "--groups" instead so you can specify multiple groups. Would be smart to implement both in one go instead of having to come back when someone asks for it.

For that I was thinking similar to --limit where the option can be repeated so --group groupA --group groupB kinda thing.

Fizzadar avatar Nov 15 '21 09:11 Fizzadar

Hmm maybe both? Like --groups a,b,c,d and --group a --group b --group c --group d. Looking at this, you can save a lot of typing if you can just specify multiple groups with a delimiter

skutter-de avatar Nov 15 '21 09:11 skutter-de