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 flag to generate shell completions #33

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

kpcyrd
Copy link
Contributor

@kpcyrd kpcyrd commented Jan 11, 2024

This adds a flag to generate tab completions that can be loaded into the shell:

image

I had to remove the banner to ensure it doesn't mix up with the completion script. Alternatively either the banner or the completions could be printed to stderr or a file. It's also possible to generate completions into the target/ folder with build.rs (although some people prefer projects to not have a build.rs).

@evilsocket evilsocket merged commit 2844290 into evilsocket:main Jan 11, 2024
1 check passed
@evilsocket
Copy link
Owner

this is amazing! thank you so much

@kpcyrd kpcyrd deleted the shell-completions branch January 11, 2024 18:35
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