aboutsummaryrefslogtreecommitdiffstats
path: root/src/_golang
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2024-07-30 12:19:18 +0900
committerShohei YOSHIDA <syohex@gmail.com>2024-07-30 12:19:18 +0900
commit78c0ab5f9519b247daae80a3e47699315ba570b7 (patch)
treee0932ce0e290b9a43cc41c6c3fcb99aa96226a84 /src/_golang
parentUpdate 'go fmt' completion (diff)
downloadzsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar.gz
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar.bz2
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar.lz
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar.xz
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.tar.zst
zsh-completions-78c0ab5f9519b247daae80a3e47699315ba570b7.zip
Update 'go generate' completion
Diffstat (limited to 'src/_golang')
-rw-r--r--src/_golang9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/_golang b/src/_golang
index 32d64eb..8496f34 100644
--- a/src/_golang
+++ b/src/_golang
@@ -563,19 +563,20 @@ case $state in
(fmt)
_arguments \
'-C[change to directory before running the command]: :_files -/' \
- '-n[prints commands that would be executed]' \
- '-x[prints commands as they are executed]' \
- '-mod=[sets which download mode to use]:mode:(readonly vendor)' \
+ '-n[print commands that would be executed]' \
+ '-x[print commands as they are executed]' \
+ '-mod=[set which download mode to use]:mode:(readonly vendor)' \
'*:importpaths:__go_packages'
;;
- generate)
+ (generate)
_arguments \
'-C[change to directory before running the command]: :_files -/' \
'-run=[specifies a regular expression to select directives]:regex' \
'-x[print the commands]' \
'-n[print the commands but do not run them]' \
'-v[print the names of packages as they are compiled]' \
+ ${build_flags[@]} \
"*:args:{ _alternative ':importpaths:__go_packages' _files }"
;;