Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: clap-rs/clap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.5.5
Choose a base ref
...
head repository: clap-rs/clap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.5.6
Choose a head ref
  • 4 commits
  • 21 files changed
  • 2 contributors

Commits on May 17, 2024

  1. 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.
    Pawel Zmarzly committed May 17, 2024
    Configuration menu
    Copy the full SHA
    be15bd5 View commit details
    Browse the repository at this point in the history
  2. feat(complete): Add autocomplete for visible_alias

    Let's generate autocompletions for aliased subcommands.
    
        $ source before.zsh
        $ clap-test [TAB] <- gives me "foo bar --"
        $ clap-test foo [TAB] <- gives me "--my-flag"
        $ clap-test bar [TAB] <- no reaction
    
        $ source after.zsh
        $ clap-test [TAB] <- gives me "foo bar --"
        $ clap-test foo [TAB] <- gives me "--my-flag"
        $ clap-test bar [TAB] <- gives me "--my-flag"
    Pawel Zmarzly committed May 17, 2024
    Configuration menu
    Copy the full SHA
    5000d58 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Merge pull request #5476 from pzmarzly/issue-4265

    feat(complete): generate completions for visible aliases
    epage authored Jun 6, 2024
    Configuration menu
    Copy the full SHA
    d87dee6 View commit details
    Browse the repository at this point in the history
  2. chore: Release

    epage committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    122a2b3 View commit details
    Browse the repository at this point in the history
Loading