Update 'go generate' completion
This commit is contained in:
parent
aac56495ba
commit
78c0ab5f95
|
@ -563,19 +563,20 @@ case $state in
|
||||||
(fmt)
|
(fmt)
|
||||||
_arguments \
|
_arguments \
|
||||||
'-C[change to directory before running the command]: :_files -/' \
|
'-C[change to directory before running the command]: :_files -/' \
|
||||||
'-n[prints commands that would be executed]' \
|
'-n[print commands that would be executed]' \
|
||||||
'-x[prints commands as they are executed]' \
|
'-x[print commands as they are executed]' \
|
||||||
'-mod=[sets which download mode to use]:mode:(readonly vendor)' \
|
'-mod=[set which download mode to use]:mode:(readonly vendor)' \
|
||||||
'*:importpaths:__go_packages'
|
'*:importpaths:__go_packages'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
generate)
|
(generate)
|
||||||
_arguments \
|
_arguments \
|
||||||
'-C[change to directory before running the command]: :_files -/' \
|
'-C[change to directory before running the command]: :_files -/' \
|
||||||
'-run=[specifies a regular expression to select directives]:regex' \
|
'-run=[specifies a regular expression to select directives]:regex' \
|
||||||
'-x[print the commands]' \
|
'-x[print the commands]' \
|
||||||
'-n[print the commands but do not run them]' \
|
'-n[print the commands but do not run them]' \
|
||||||
'-v[print the names of packages as they are compiled]' \
|
'-v[print the names of packages as they are compiled]' \
|
||||||
|
${build_flags[@]} \
|
||||||
"*:args:{ _alternative ':importpaths:__go_packages' _files }"
|
"*:args:{ _alternative ':importpaths:__go_packages' _files }"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue