Skip to content

Commit

Permalink
core/cli: update vendored completion files
Browse files Browse the repository at this point in the history
update required click version to 8.1
so we dont regenerate the vendored completions
wrong in the future
  • Loading branch information
seanbreckenridge authored and karlicoss committed Sep 6, 2023
1 parent c283e54 commit ff84d8f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 1 addition & 5 deletions misc/completion/fish/hpi.fish
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
8 changes: 7 additions & 1 deletion misc/completion/zsh/_hpi
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'appdirs', # very common, and makes it portable
'more-itertools', # it's just too useful and very common anyway
'decorator' , # less pain in writing correct decorators. very mature and stable, so worth keeping in core
'click>=8.0' , # for the CLI, printing colors, decorator-based - may allow extensions to CLI
'click>=8.1' , # for the CLI, printing colors, decorator-based - may allow extensions to CLI
]


Expand Down

0 comments on commit ff84d8f

Please sign in to comment.