mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-28 15:54:48 +00:00
update 'new' command completion
This commit is contained in:
+8
-4
@@ -851,18 +851,22 @@ _conan_require() {
|
|||||||
|
|
||||||
(( $+functions[_conan_new] )) ||
|
(( $+functions[_conan_new] )) ||
|
||||||
_conan_new() {
|
_conan_new() {
|
||||||
|
local ret=1
|
||||||
local -a templates=(
|
local -a templates=(
|
||||||
basic cmake_lib cmake_exe meson_lib meson_exe msbuild_lib msbuild_exe
|
basic cmake_lib cmake_exe header_lib meson_lib meson_exe msbuild_lib msbuild_exe
|
||||||
bezel_lib bezel_exe autotools_lib autotools_exe
|
bezel_lib bezel_exe autotools_lib autotools_exe premake_lib premake_exe
|
||||||
|
local_recipes_index workspace
|
||||||
)
|
)
|
||||||
local -a opts=(
|
local -a opts=(
|
||||||
$_conan_common_options[@]
|
$_conan_common_options[@]
|
||||||
\*{-d,--define}'[define a template argument as key=value]:key_value'
|
\*{-d,--define}'[define a template argument as key=value]:key_value'
|
||||||
'(-f --force)'{-f,--force}'[overwrite file if it already exists]'
|
'(-f --force)'{-f,--force}'[overwrite file if it already exists]'
|
||||||
"1:template:($templates)"
|
'(-o --output)'{-o,--output}'[output folder for the generated files]:folder:_files -/'
|
||||||
|
'1:template:($templates)'
|
||||||
)
|
)
|
||||||
|
|
||||||
_arguments "$opts[@]"
|
_arguments "$opts[@]" && ret=0
|
||||||
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
(( $+functions[_conan_source] )) ||
|
(( $+functions[_conan_source] )) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user