update 'download' command completion

This commit is contained in:
Shohei YOSHIDA 2026-06-23 18:37:38 +09:00
parent cdec11a66b
commit fd93dc2e75
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 5 additions and 1 deletions

View File

@ -717,15 +717,19 @@ _conan_create() {
(( $+functions[_conan_download] )) || (( $+functions[_conan_download] )) ||
_conan_download() { _conan_download() {
local ret=1
local -a opts=( local -a opts=(
$_conan_common_options[@] $_conan_common_options[@]
'--only-recipe[download only the recipe, not the binary packages]' '--only-recipe[download only the recipe, not the binary packages]'
\*{-p,--package-query}'[only download packages matching a specific query]:query' \*{-p,--package-query}'[only download packages matching a specific query]:query'
'(-r --remote)'{-r,--remote}'[download from the specific remote]:remote:_conan_remotes' '(-r --remote)'{-r,--remote}'[download from the specific remote]:remote:_conan_remotes'
'(-m --metadata)'{-m,--metadata}'[download the metadata matching the pattern]:pattern'
'(-l --list)'{-l,--list}'[package list file]:list:_files'
'*:recipe_or_package_reference:_files' '*:recipe_or_package_reference:_files'
) )
_arguments "$opts[@]" _arguments "$opts[@]" && ret=0
return ret
} }
(( $+functions[_conan_editable] )) || (( $+functions[_conan_editable] )) ||