mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 14:52:33 +00:00
fix(completions/zsh.rs): Add missing autoload for is-at-least
This commit is contained in:
parent
e077e0c930
commit
a652260795
2 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,8 @@ impl<'a, 'b> ZshGen<'a, 'b> {
|
|||
"\
|
||||
#compdef {name}
|
||||
|
||||
autoload -U is-at-least
|
||||
|
||||
_{name}() {{
|
||||
typeset -A opt_args
|
||||
typeset -a _arguments_options
|
||||
|
|
|
@ -89,6 +89,8 @@ complete -F _myapp -o bashdefault -o default myapp
|
|||
|
||||
static ZSH: &'static str = r#"#compdef myapp
|
||||
|
||||
autoload -U is-at-least
|
||||
|
||||
_myapp() {
|
||||
typeset -A opt_args
|
||||
typeset -a _arguments_options
|
||||
|
@ -387,6 +389,8 @@ static POWERSHELL_SPECIAL_CMDS: &'static str = r#"
|
|||
|
||||
static ZSH_SPECIAL_CMDS: &'static str = r#"#compdef my_app
|
||||
|
||||
autoload -U is-at-least
|
||||
|
||||
_my_app() {
|
||||
typeset -A opt_args
|
||||
typeset -a _arguments_options
|
||||
|
@ -673,6 +677,8 @@ complete -c my_app -n "__fish_using_command my_app" -s V -l version -d 'Prints v
|
|||
|
||||
static ZSH_SPECIAL_HELP: &'static str = r#"#compdef my_app
|
||||
|
||||
autoload -U is-at-least
|
||||
|
||||
_my_app() {
|
||||
typeset -A opt_args
|
||||
typeset -a _arguments_options
|
||||
|
|
Loading…
Reference in a new issue