Add 'go telemetry' completion
This commit is contained in:
parent
10dd51ded3
commit
139dc0e2d9
10
src/_golang
10
src/_golang
|
@ -195,6 +195,7 @@ local -a commands=(
|
|||
'mod:module maintenance'
|
||||
'work:workspace maintenance'
|
||||
'run:compile and run Go program'
|
||||
'telemetry:manage Go telemetry data and settings'
|
||||
'test:test packages'
|
||||
'tool:run specified go tool'
|
||||
'version:print Go version'
|
||||
|
@ -658,6 +659,15 @@ case $state in
|
|||
'*:importpaths:__go_packages'
|
||||
;;
|
||||
|
||||
(telemetry)
|
||||
local -a telemetry_commands=(
|
||||
'off:disable both collection and uploading of telemetry data'
|
||||
'local:disable telemetry uploading, but enable local data collection'
|
||||
'on:enable both collection and uploading of telemetry data'
|
||||
)
|
||||
_describe 'command' telemetry_commands
|
||||
;;
|
||||
|
||||
(test)
|
||||
if [[ $words[$CURRENT] = -test.* ]]; then
|
||||
_arguments \
|
||||
|
|
Loading…
Reference in New Issue