Add 'go tool buildid' completion
This commit is contained in:
parent
91fce88036
commit
b4c970619b
20
src/_golang
20
src/_golang
|
@ -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]' \
|
||||||
|
|
Loading…
Reference in New Issue