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

Support bash auto-completion #4

Open
emouty opened this issue Jan 16, 2025 · 3 comments · May be fixed by #5
Open

Support bash auto-completion #4

emouty opened this issue Jan 16, 2025 · 3 comments · May be fixed by #5

Comments

@emouty
Copy link

emouty commented Jan 16, 2025

To ease usage of cli it would be nice to add shell auto-completion support on it, especially on when running oidc token . It would help avoid the need of manually calling oidc list to check names of clients.

@ctron
Copy link
Owner

ctron commented Jan 16, 2025

Ah cool. Sure. How would that work?

@emouty
Copy link
Author

emouty commented Jan 16, 2025

I'm not very familiar with rust and its ecosystem but from what I've found it seems that there is a clap crate that would help to generate completion lap_complete but it seems limited to static defined sub-commands (which could be a first step of implementation).

I have also found an article detailing how to write completions in pure rust and with it the author has made a crate to help generate them shell_completion

@ctron
Copy link
Owner

ctron commented Jan 16, 2025

I'd definitely need some help on this. PRs welcome 😉

@emouty emouty linked a pull request Jan 23, 2025 that will close this issue
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