Update 'go tool pack' completion

This commit is contained in:
Shohei YOSHIDA 2024-07-30 12:43:19 +09:00
parent 238d3b0749
commit a8dacc93aa
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 14 additions and 3 deletions

View File

@ -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)