From 238d3b0749a8f1f589711681e5f73e857ff611a1 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 30 Jul 2024 12:38:41 +0900 Subject: [PATCH] Update 'go tool fix' completion --- src/_golang | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_golang b/src/_golang index bf73f23..eaa383c 100644 --- a/src/_golang +++ b/src/_golang @@ -917,11 +917,12 @@ case $state in '-u[show docs for unexported and exported symbols and methods]' ;; - fix) + (fix) _arguments \ + '(* -)-help[show help message]' \ '-diff[display diffs instead of rewriting files]' \ - '-force[force fixes to run even if the code looks updated]:string' \ - '-r[restrict the rewrites]:string' \ + '-force[force fixes to run even if the code looks updated]:string:__go_fix_names' \ + '-r[restrict the rewrites]:string:__go_fix_names' \ '*:files:_files' ;;