Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More flexibility with labels #21

Open
JasonMaloney opened this issue Dec 14, 2014 · 1 comment
Open

More flexibility with labels #21

JasonMaloney opened this issue Dec 14, 2014 · 1 comment

Comments

@JasonMaloney
Copy link
Contributor

The first part of this request would be to add a new option:

-L, --no-label=LABEL        do not connect to hosts under label LABEL

The two label options would be mutually exclusive. I'll go ahead and submit a patch for this one soon.

The second part of the request would be to specify multiple labels for either option. For instance:

mpssh -l app -l db

or

mpssh -L dev -L internal

This one will take a bit longer.

I could also see someone wanting to mix the two options (all hosts in label A except for those also in label B), but at that point they should probably just make a new label.

@JasonMaloney
Copy link
Contributor Author

Upon further review, I neglected to account for the case in which a host may exist in more than one label; we would have to actually remove that host from the linked list if it's already there.

It may be beneficial to change the host list to a doubly-linked list to aid said deletions. I'm open to alternatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant