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

Add syntax completion #1

Closed
schnatterer opened this issue Jan 25, 2021 · 3 comments · Fixed by #2
Closed

Add syntax completion #1

schnatterer opened this issue Jan 25, 2021 · 3 comments · Fixed by #2

Comments

@schnatterer
Copy link
Member

Syntax completion would be very helpful.

How can we bring helm sudo to basically provide helm's syntax completion?

Could this be possible using dynamic completion?

@marckhouzam
Copy link

To enable shell completion you can add a plugin.complete executable file in your plugin directory with the following content:

#!/usr/bin/env bash

$HELM_BIN __complete "$@"

It basically asks helm to provide the completion choices.

I hope this helps.

@marckhouzam
Copy link

Oh, I should mention that you'll need the soon-to-be-released helm 3.8 for this completion to also work for flags.

@schnatterer
Copy link
Member Author

Cool, this sounds exactly like what I was looking for back then.

I just tried this with helm 3.8.0-rc2 and it just works! Thanks so much, @marckhouzam!

schnatterer added a commit that referenced this issue Jan 24, 2022
@phaenr phaenr closed this as completed in #2 Feb 18, 2022
This issue was closed.
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 a pull request may close this issue.

2 participants