mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-11-26 10:59:59 +08:00
Update 'go tool trace' completion
This commit is contained in:
1 file changed
+10
-1
+10
-1
@@ -1049,9 +1049,18 @@ case $state in
|
||||
'*:files:_files'
|
||||
;;
|
||||
|
||||
trace)
|
||||
(trace)
|
||||
local -a trace_types=(
|
||||
"net:network blocking profile"
|
||||
"sync:synchronization blocking profile"
|
||||
"syscall:syscall blocking profile"
|
||||
"scheduler:latency profile"
|
||||
)
|
||||
|
||||
_arguments \
|
||||
'-pprof=[profile type]:type:{_describe "type" trace_types}' \
|
||||
'-http=[HTTP service address]:addr' \
|
||||
'-d=[print debug info such as parsed events]:level:((1\:"high-level" 2\:"low-level"))' \
|
||||
'*:files:_files'
|
||||
;;
|
||||
|
||||
|
||||
Reference in new issue
Block a user