aboutsummaryrefslogtreecommitdiffstats
path: root/src/_golang
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2024-07-30 11:56:50 +0900
committerShohei YOSHIDA <syohex@gmail.com>2024-07-30 11:56:50 +0900
commit937cd0fcea26579b6a421bf7002074c2ae38c8a2 (patch)
tree46fcb647b982057a4f619b4cead28566c186534e /src/_golang
parentImprove 'go help' completion (diff)
downloadzsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar.gz
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar.bz2
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar.lz
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar.xz
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.tar.zst
zsh-completions-937cd0fcea26579b6a421bf7002074c2ae38c8a2.zip
Complete package name in 'go doc'
Diffstat (limited to 'src/_golang')
-rw-r--r--src/_golang5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/_golang b/src/_golang
index e3541d4..1f001ea 100644
--- a/src/_golang
+++ b/src/_golang
@@ -449,14 +449,15 @@ case $state in
'*:importpaths:__go_packages'
;;
- doc)
+ (doc)
_arguments \
'-all[show all the documentation for the package]' \
'-c[respect case when matching symbols]' \
'-cmd[treat a command (package main) like a regular package]' \
'-short[one-line representation for each symbol]' \
'-src[show the full source code for the symbol]' \
- '-u[show docs for unexported and exported symbols and methods]'
+ '-u[show docs for unexported and exported symbols and methods]' \
+ '*:importpaths:__go_packages'
;;
env)