Merge pull request #1104 from telemachus/golang-telemetry

Add 'go telemetry' completion
This commit is contained in:
Shohei YOSHIDA 2024-09-17 11:37:50 +09:00 committed by GitHub
commit d24f58d2f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -195,6 +195,7 @@ local -a commands=(
'mod:module maintenance' 'mod:module maintenance'
'work:workspace maintenance' 'work:workspace maintenance'
'run:compile and run Go program' 'run:compile and run Go program'
'telemetry:manage Go telemetry data and settings'
'test:test packages' 'test:test packages'
'tool:run specified go tool' 'tool:run specified go tool'
'version:print Go version' 'version:print Go version'
@ -658,6 +659,15 @@ case $state in
'*:importpaths:__go_packages' '*: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) (test)
if [[ $words[$CURRENT] = -test.* ]]; then if [[ $words[$CURRENT] = -test.* ]]; then
_arguments \ _arguments \