{{ message }}
bash completions#563
Merged
Merged
Conversation
degremont
reviewed
Jul 1, 2024
thiell
added a commit
to thiell/clustershell
that referenced
this pull request
Sep 9, 2024
…ll#563) Let -s source behave as if it replaces the default group source, and thus omit the source prefix for the groups in that source. Part of clustershell#563.
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 14, 2024
Let -s source behave as if it replaces the default group source, and thus omit the source prefix for the groups in that source. Part of #563.
Collaborator
thiell
added a commit
to thiell/clustershell
that referenced
this pull request
Jan 20, 2025
Special command for bash completion that lists group sources, groups in current source and nodes from groups passed as argument: cluset --completion [-s source] [groups] Example: cluset --completion $*
276550c to
2f273dc
Compare
thiell
reviewed
Jan 21, 2025
thiell
requested changes
Jan 21, 2025
thiell
left a comment
Collaborator
There was a problem hiding this comment.
Also investigating a unexpected blank result in some cases
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Special command for bash completion that lists group sources, groups in current source and nodes from groups passed as argument: cluset --completion [-s source] [groups] Example: cluset --completion $* Part of clustershell#563.
thiell
pushed a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Provide bash completion scripts for clush and cluset/nodeset to autocomplete group sources, groups and "all" nodes from the default or selected source. Part of clustershell#563.
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Special command for bash completion that lists group sources, groups in current source and nodes from groups passed as argument: cluset --completion [-s source] [groups] Example: cluset --completion @* Part of clustershell#563.
thiell
pushed a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Provide bash completion scripts for clush and cluset/nodeset to autocomplete group sources, groups and "all" nodes from the default or selected source. Part of clustershell#563.
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Because it conflicts with xCAT's nodeset command. Part of clustershell#563.
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
Because it conflicts with xCAT's nodeset command. Part of clustershell#563.
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
thiell
added a commit
to martinetd/clustershell
that referenced
this pull request
Jan 22, 2025
degremont
reviewed
Jan 22, 2025
degremont
left a comment
Collaborator
There was a problem hiding this comment.
Overall, this is a very nice work! I'm just not convinced by the missing completion for nodeset
Provide bash completion scripts for clush and cluset/nodeset to autocomplete group sources, groups and "all" nodes from the default or selected source. Part of clustershell#563.
thiell
approved these changes
Jan 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Just clush for now; might be some bugs but seems to work.
perf-wise it calls
cluset -Lon every tab, we might need to cache the result somewhere if it is slow in some setups.(But if user changes conf files it won't be reloaded so that's a bit annoying, it's better not to cache if it's reasonable e.g. just reading the conf files)
Prereq patch makes
cluset -s foo -Lnot listfoogroups with the@foo:prefix, like default source with-L-- this allowsclush -s foo -w @barto complete properly.