core/cli: update vendored completion files
update required click version to 8.1 so we dont regenerate the vendored completions wrong in the future
This commit is contained in:
parent
c283e542e3
commit
ff84d8fc88
3 changed files with 9 additions and 7 deletions
|
@ -1,9 +1,5 @@
|
|||
function _hpi_completion;
|
||||
set -l response;
|
||||
|
||||
for value in (env _HPI_COMPLETE=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) hpi);
|
||||
set response $response $value;
|
||||
end;
|
||||
set -l response (env _HPI_COMPLETE=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) hpi);
|
||||
|
||||
for completion in $response;
|
||||
set -l metadata (string split "," $completion);
|
||||
|
|
|
@ -31,5 +31,11 @@ _hpi_completion() {
|
|||
fi
|
||||
}
|
||||
|
||||
compdef _hpi_completion hpi;
|
||||
if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
|
||||
# autoload from fpath, call function directly
|
||||
_hpi_completion "$@"
|
||||
else
|
||||
# eval/source/. command, register function for later
|
||||
compdef _hpi_completion hpi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue