From 177fadadbaf10bee331235b6a9e94a7d8c9361ed Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Mon, 29 Jul 2024 17:46:12 +0900 Subject: [PATCH] Update 'go vet' completion --- src/_golang | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/_golang b/src/_golang index ec88f91..41075f2 100644 --- a/src/_golang +++ b/src/_golang @@ -1037,17 +1037,18 @@ case $state in esac ;; - version) + (version) _arguments \ '-m[print each executable embedded module version information]' \ '-v[report unrecognized files]' \ '*:files:_files' ;; - vet) + (vet) _arguments \ '-n[print commands that would be executed]' \ '-x[prints commands as they are executed]' \ + '-vettool[set a different analysis tool with alternative or additional checks]:prog:_files' \ ${build_flags[@]} \ '*:importpaths:__go_packages' ;;