Update 'go list' completion
This commit is contained in:
parent
78c0ab5f95
commit
89d7a5ec24
|
@ -580,7 +580,7 @@ case $state in
|
||||||
"*:args:{ _alternative ':importpaths:__go_packages' _files }"
|
"*:args:{ _alternative ':importpaths:__go_packages' _files }"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
get)
|
(get)
|
||||||
# no mod_flags for get
|
# no mod_flags for get
|
||||||
_arguments \
|
_arguments \
|
||||||
'-d[instructs get to stop after downloading the packages]' \
|
'-d[instructs get to stop after downloading the packages]' \
|
||||||
|
@ -593,18 +593,21 @@ case $state in
|
||||||
'*:importpaths:__go_packages'
|
'*:importpaths:__go_packages'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
install)
|
(install)
|
||||||
_arguments ${build_flags[@]} \
|
_arguments ${build_flags[@]} \
|
||||||
'*:importpaths:__go_packages'
|
'*:importpaths:__go_packages'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
list)
|
(list)
|
||||||
local -a list_args=(
|
local -a list_args=(
|
||||||
'-e[changes the handling of erroneous packages]'
|
'-e[changes the handling of erroneous packages]'
|
||||||
'-f[specifies an alternate format for the list]:format'
|
'-f[specifies an alternate format for the list]:format'
|
||||||
'-json[causes package data to be printed in JSON format]'
|
'-json[causes package data to be printed in JSON format]'
|
||||||
'-compiled[set CompiledGoFiles to the Go source files presented to the compiler]'
|
'-compiled[set CompiledGoFiles to the Go source files presented to the compiler]'
|
||||||
'-deps[iterate over named packages and their dependencies]'
|
'-deps[iterate over named packages and their dependencies]'
|
||||||
|
'-export[set the Export for the given package]:package'
|
||||||
|
'-find[identify the named packages but not resolve their dependencies]:package'
|
||||||
|
'-test[report not only the named packages but also their test binaries]'
|
||||||
'-m[list modules instead of packages]'
|
'-m[list modules instead of packages]'
|
||||||
${build_flags[@]}
|
${build_flags[@]}
|
||||||
${mod_flags[@]}
|
${mod_flags[@]}
|
||||||
|
|
Loading…
Reference in New Issue