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

Shell completions #41

Merged
merged 3 commits into from Jan 1, 2020
Merged

Shell completions #41

merged 3 commits into from Jan 1, 2020

Conversation

arusahni
Copy link
Owner

This adds a --completions arg which, when supplied with one of zsh, bash, fish. It will invoke Clap's completion generation function to make a script which can then be loaded by a shell to supply completions for git-req.

I also changed REQUEST_ID to not use a default_value due to an issue with Clap's usage definition: clap-rs/clap#1140

Fixes #35

Workaround for clap bug: clap-rs/clap#1140
where the arg will always be displayed in the usage string.
@arusahni arusahni added this to the v2.2.0 milestone Dec 30, 2019
@arusahni arusahni self-assigned this Dec 30, 2019
@arusahni arusahni merged commit 50fcdc1 into master Jan 1, 2020
@arusahni arusahni deleted the shell-completion branch January 18, 2021 02:11
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.

Generate completions and man page with build
1 participant