Skip to content

completion: handle short opts without spaces #586

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

martinetd
Copy link
Collaborator

Apparently some people want to use clush -wfoo...

(Since it's a different issue than #585 this is open as a different PR, I don't like the merge queue squashing unrelated commits :p Note it should be merged after #585 as I've left the other commit in for easier testing, but there's no conflict so we could rebase if required. Opened as draft because of this.)

When using clush -c we should try to complete local files.

When not using -c, if a taget has already been set we can also try to
complete a command.
We could do like ssh and try to complete it on any node in the nodeset,
but a local completion is probably good enough.

And still complete possible options but only do so if a dash was
present, this is similar to what e.g. `ls` completion does

Fixes cea-hpc#584
Apparently some people want to use clush -wfoo...
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

Successfully merging this pull request may close these issues.

1 participant