Add 'go tool buildid' completion

This commit is contained in:
Shohei YOSHIDA 2024-07-29 17:59:51 +09:00
parent 91fce88036
commit b4c970619b
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 4 additions and 16 deletions

View File

@ -761,25 +761,13 @@ case $state in
'*:file:_files' '*:file:_files'
;; ;;
callgraph) (buildid)
local -a algos=(
'static:static calls only'
'cha:Class Hierarchy Analysis'
'rta:Rapid Type Analysis'
'pta:inclusion-based Points-To Analysis'
)
local -a graphs=(
'digraph:output in digraph format'
'graphviz:output in AT&T GraphViz (.dot) format'
)
_arguments \ _arguments \
'-algo=[call-graph construction algorithm]:algos:{ _describe "algos" algos }' \ '-w[rewrite the build ID found in the file]' \
"-test[include the package's tests in the analysis]" \ '*:file:_files'
'-format=[format in which each call graph edge is displayed]:graphs:{ _describe "graphs" graphs }'
;; ;;
cgo) (cgo)
_arguments \ _arguments \
'-debug-define[print relevant #defines]' \ '-debug-define[print relevant #defines]' \
'-debug-gcc[print gcc invocations]' \ '-debug-gcc[print gcc invocations]' \