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'
;;
callgraph)
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'
)
(buildid)
_arguments \
'-algo=[call-graph construction algorithm]:algos:{ _describe "algos" algos }' \
"-test[include the package's tests in the analysis]" \
'-format=[format in which each call graph edge is displayed]:graphs:{ _describe "graphs" graphs }'
'-w[rewrite the build ID found in the file]' \
'*:file:_files'
;;
cgo)
(cgo)
_arguments \
'-debug-define[print relevant #defines]' \
'-debug-gcc[print gcc invocations]' \