clap/clap_complete
Pawel Zmarzly be15bd5d96 fix(complete): Fix zsh.rs subcommand deduplication
Fixing the iteration over all_subcommands in zsh.rs. We deduplicate
values on (sc_name, bin_name) keys, but then only iterate on bin_name.
This doesn't cause problems now, since all bin names seem to be unique.
However, without fixing this, the next commit would have started
generating duplicated functions with same names.

For example, with an #[long = "foo", visible_alias = "bar"] subcommand,
we'll end up with 2 pairs: [("foo", "foo"), ("bar", "foo")]. Before this
commit, we would have ended up generating _my-app__foo_commands()
functions. These functions should have identical content, so it is not
an error, just an inefficiency that we can fix.
2024-05-17 15:16:43 +01:00
..
examples chore: Update from template 2024-05-14 12:27:02 -05:00
src fix(complete): Fix zsh.rs subcommand deduplication 2024-05-17 15:16:43 +01:00
tests fix(complete): Fix zsh.rs subcommand deduplication 2024-05-17 15:16:43 +01:00
Cargo.toml chore: Update from template 2024-05-14 12:27:02 -05:00
CHANGELOG.md chore: Release 2024-04-09 12:08:43 -05:00
CONTRIBUTING.md fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00
LICENSE-APACHE fix(complete): Give crates more specific names 2021-12-31 12:03:29 -06:00
LICENSE-MIT docs(license): Update years/holders 2022-06-27 12:55:09 -05:00
README.md chore: Release 2024-04-09 12:08:43 -05:00

clap_complete

Shell completion generation for clap

Crates.io Crates.io License License

Dual-licensed under Apache 2.0 or MIT.

  1. About
  2. API Reference
  3. Questions & Discussions
  4. CONTRIBUTING
  5. Sponsors

About