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

fix(generate): Better subcommand completion in fish #2726

Merged
merged 3 commits into from
Sep 8, 2021

Conversation

ModProg
Copy link
Contributor

@ModProg ModProg commented Aug 19, 2021

  • Prevent completing subcommands that were already completed
  • Make sure all parent subcommands actually existent

Partially does a bit of #2715 (the "simple case")

@ModProg
Copy link
Contributor Author

ModProg commented Aug 20, 2021

Need to update the tests

@ModProg ModProg force-pushed the fish-better-subcommands branch 2 times, most recently from d802c56 to d6cd435 Compare August 20, 2021 01:00
* Prevent completing subcommands that were already completed

* Make sure all parent subcommands actually existent

Partially fixes clap-rs#2715
clap_generate/src/generators/shells/fish.rs Outdated Show resolved Hide resolved
clap_generate/src/generators/shells/fish.rs Outdated Show resolved Hide resolved
This now also disables the completion of sub_subcommands options for
subcommands.
@pksunkara pksunkara merged commit 0105e6f into clap-rs:master Sep 8, 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.

None yet

2 participants