Update 'go tool fix' completion

This commit is contained in:
Shohei YOSHIDA 2024-07-30 12:38:41 +09:00
parent 13b8ba55e2
commit 238d3b0749
No known key found for this signature in database
GPG Key ID: C9A1BB11BB940CF2
1 changed files with 4 additions and 3 deletions

View File

@ -917,11 +917,12 @@ case $state in
'-u[show docs for unexported and exported symbols and methods]' '-u[show docs for unexported and exported symbols and methods]'
;; ;;
fix) (fix)
_arguments \ _arguments \
'(* -)-help[show help message]' \
'-diff[display diffs instead of rewriting files]' \ '-diff[display diffs instead of rewriting files]' \
'-force[force fixes to run even if the code looks updated]:string' \ '-force[force fixes to run even if the code looks updated]:string:__go_fix_names' \
'-r[restrict the rewrites]:string' \ '-r[restrict the rewrites]:string:__go_fix_names' \
'*:files:_files' '*:files:_files'
;; ;;