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 shell completion generation #100

Merged
merged 3 commits into from Oct 17, 2023

Conversation

NickyMeuleman
Copy link
Contributor

I heavily rely on shell completions for all CLI tools I use, it requires me to memorize less and prevents spelling mistakes.

This PR adds a way to generate shell completions.

Example of it running on my machine, using the zsh shell and using tab to see all possible completions:
https://asciinema.org/a/UJlAyLIj43c0NCyiQ6i700OhL

Copy link
Owner

@tbillington tbillington left a comment

Choose a reason for hiding this comment

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

Thanks for this, I didn't know about clap_complete! Just a couple minor things then it's good to go.

kondo/src/main.rs Outdated Show resolved Hide resolved
kondo/src/main.rs Outdated Show resolved Hide resolved
NickyMeuleman and others added 2 commits October 17, 2023 14:22
Co-authored-by: Trent <2771466+tbillington@users.noreply.github.com>
Copy link
Owner

@tbillington tbillington left a comment

Choose a reason for hiding this comment

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

Awesome, cheers :)

@tbillington tbillington merged commit 69c153b into tbillington:master Oct 17, 2023
2 checks passed
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.

None yet

2 participants