clap/clap_complete/src/shells
David Aguilar 58b0c504d8 fix(complete): Emit value terminators on zsh
Emit the user-defined value terminator into the zsh completion pattern
to avoid doubled rest-arguments definitions:

    $ my-app <TAB>
    _arguments:comparguments:325: doubled rest argument definition:
    *::second -- second set of of multi-length arguments:

https://github.com/clap-rs/clap/issues/3266#issuecomment-1007901407
noted that including the value terminator is one step towards a
robust solution for handling multiple multi-valued arguments.

This change does not yet handle automatically detecting when a value
terminator is needed, but it does add tests to ensure that
user-specified value terminators are used on zsh.

Related-to: #3022
Signed-off-by: David Aguilar <davvid@gmail.com>
2023-01-10 00:59:25 -08:00
..
bash.rs fix(complete): Fix command alias and Bash 2022-09-29 08:58:32 -07:00
elvish.rs style: Make clippy happy 2022-11-24 08:05:21 -06:00
fish.rs fix(complete): Escape , in completions for fish 2022-09-02 14:47:04 +02:00
mod.rs fix(complete): Better organize the API 2021-12-31 13:25:09 -06:00
powershell.rs style: Make clippy happy 2022-11-24 08:05:21 -06:00
shell.rs fix(error): Lowercase the start of error messages 2023-01-03 13:17:46 -06:00
zsh.rs fix(complete): Emit value terminators on zsh 2023-01-10 00:59:25 -08:00