diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-30 12:43:19 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2024-07-30 12:43:19 +0900 |
| commit | a8dacc93aacaa4849c436521f76d2a04c8be4a9d (patch) | |
| tree | 3f9448623cbc9e80a1d9cce14495cd94e390c837 /src/_golang | |
| parent | Update 'go tool fix' completion (diff) | |
| download | zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar.gz zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar.bz2 zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar.lz zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar.xz zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.tar.zst zsh-completions-a8dacc93aacaa4849c436521f76d2a04c8be4a9d.zip | |
Update 'go tool pack' completion
Diffstat (limited to 'src/_golang')
| -rw-r--r-- | src/_golang | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/_golang b/src/_golang index eaa383c..b6207b8 100644 --- a/src/_golang +++ b/src/_golang @@ -970,14 +970,25 @@ case $state in '*:files:_files' ;; - objdump) + (objdump) _arguments \ '-s[only dump symbols matching this regexp]:regexp' \ '*:files:_files' ;; - pack) - _arguments '1:ops:(c p r t x)' '::verbose:(v)' ':files:_files' + (pack) + local -a pack_ops=( + 'c:append files to a new archive' + 'p:print files from the archive' + 'r:append files to the archive' + 't:list files from the archive' + 'x:extract files from the archive' + ) + + _arguments \ + '1:ops:{_describe "ops" pack_ops}' \ + '::verbose:(v)' \ + ':files:_files' ;; pprof) |
