Skip to content

Commit

Permalink
Merge pull request #1104 from telemachus/golang-telemetry
Browse files Browse the repository at this point in the history
Add 'go telemetry' completion
  • Loading branch information
syohex authored Sep 17, 2024
2 parents 10dd51d + 139dc0e commit d24f58d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/_golang
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit d24f58d

Please sign in to comment.