diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-30 12:26:31 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-30 12:26:31 +0900 |
| commit | 89d7a5ec24f770a45c76f9dfd7ddfd5dca829954 (patch) | |
| tree | 33bffe7f1cd6fa74260215fb0a29dca3fe47a5f9 /src/_golang | |
| parent | Update 'go generate' completion (diff) | |
| download | zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar.gz zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar.bz2 zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar.lz zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar.xz zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.tar.zst zsh-completions-89d7a5ec24f770a45c76f9dfd7ddfd5dca829954.zip | |
Update 'go list' completion
Diffstat (limited to 'src/_golang')
| -rw-r--r-- | src/_golang | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/_golang b/src/_golang index 8496f34..8735a7e 100644 --- a/src/_golang +++ b/src/_golang @@ -580,7 +580,7 @@ case $state in "*:args:{ _alternative ':importpaths:__go_packages' _files }" ;; - get) + (get) # no mod_flags for get _arguments \ '-d[instructs get to stop after downloading the packages]' \ @@ -593,18 +593,21 @@ case $state in '*:importpaths:__go_packages' ;; - install) + (install) _arguments ${build_flags[@]} \ '*:importpaths:__go_packages' ;; - list) + (list) local -a list_args=( '-e[changes the handling of erroneous packages]' '-f[specifies an alternate format for the list]:format' '-json[causes package data to be printed in JSON format]' '-compiled[set CompiledGoFiles to the Go source files presented to the compiler]' '-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]' ${build_flags[@]} ${mod_flags[@]} @@ -613,8 +616,8 @@ case $state in # -u and -versions are only available if -m is present on the commandline if (($words[(I)-m])); then list_args+=( - '-u[adds information about available upgrades]' - '-versions[list all known versions of modules]' + '-u[adds information about available upgrades]' + '-versions[list all known versions of modules]' ) fi _arguments ${list_args[@]} |
