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

bash completions #563

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

bash completions #563

wants to merge 2 commits into from

Conversation

martinetd
Copy link
Collaborator

Just clush for now; might be some bugs but seems to work.

perf-wise it calls cluset -L on 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 -L not list foo groups with the @foo: prefix, like default source with -L -- this allows clush -s foo -w @bar to complete properly.

If a source is selected with -s for cluset -L then we correctly list it
first, but there is no need to print the prefix
just clush for now
-w|-x)
options="$(cluset ${groupsource:+-s "$groupsource"} -L 2>/dev/null)"
;;
_g|--group|-X)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(typo) _ -> -

thiell added a commit to thiell/clustershell that referenced this pull request Sep 9, 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 cea-hpc#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.
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.

2 participants