-
-
Notifications
You must be signed in to change notification settings - Fork 770
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 subcommand for generating shell completion scripts #1374
Conversation
Very cool! How do we use it? |
@lpil depends on shell, but basically for example |
A user typically configures a local completion directory and adds it to an env var like |
Hmm, that is a bit annoying. It could be OK if we remove the print-config command. Perhaps newer versions of clap might hide them? It seems odd they are not hidden. It would be frustrating in future if we wanted to hide something more substantial than |
Did a quick check on clap 3.0.0-beta.5 for my own project, hidden apps still show up in scripts 🙁 EDIT: The issue has been there for a while: clap-rs/clap#1335 |
It looks like it will be fixed in a future release? clap-rs/clap#2541 |
From the discussion it seems the status is back to clap-rs/clap#1335 |
Ah, that is a shame |
I'm going to close this as we're a bit stuck, but please feel free to reopen once we can hide commands. |
Since clap gives those basically for free 😄