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 ability to generate shell completions via clap #1425

Merged
merged 1 commit into from
Jul 6, 2021

Conversation

alexmaco
Copy link
Contributor

@alexmaco alexmaco commented Jan 4, 2021

Usual usage is something like

mdbook completions bash > /path/to/completion/file/mdbook

where the shell is configured to load completions from that location.

Another possibility is to have the completions subcommand hidden by default, since it won't be as commonly used as the others/

Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! I think it is fine to show the subcommand in the list of commands.

@ehuss ehuss merged commit 96b6f02 into rust-lang:master Jul 6, 2021
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