Merge pull request #1097 from zsh-users/update-go
Update go completion for version 1.23
This commit is contained in:
commit
f96778edad
44
src/_golang
44
src/_golang
|
@ -30,7 +30,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for go 1.22.5 (https://go.dev/).
|
# Completion script for go 1.23.0 (https://go.dev/).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -513,6 +513,7 @@ case $state in
|
||||||
[[ $words[2] != '-w' ]] && _arguments \
|
[[ $words[2] != '-w' ]] && _arguments \
|
||||||
'-C[change to directory before running the command]: :_files -/' \
|
'-C[change to directory before running the command]: :_files -/' \
|
||||||
'-json[print the environment in JSON format]' \
|
'-json[print the environment in JSON format]' \
|
||||||
|
'-changed[prints only those settings whose effective value differs from the default value]' \
|
||||||
'-u[unset environment variables]' \
|
'-u[unset environment variables]' \
|
||||||
'-w[change the default setting of environment variables]' \
|
'-w[change the default setting of environment variables]' \
|
||||||
'*:[show environment variable]: __go_list_env_vars' || _values \
|
'*:[show environment variable]: __go_list_env_vars' || _values \
|
||||||
|
@ -629,6 +630,7 @@ case $state in
|
||||||
'-v[print information about removed modules to standard error]' \
|
'-v[print information about removed modules to standard error]' \
|
||||||
'-e[attempt to proceed despite errors encountered while loading packages]' \
|
'-e[attempt to proceed despite errors encountered while loading packages]' \
|
||||||
'-x[print the commands download executes]' \
|
'-x[print the commands download executes]' \
|
||||||
|
'-diff[not to modify go.mod or go.sum but instead print necessary changes as a unified diff]' \
|
||||||
'-go[update the go directive in the go.mod file to the given version]:goversion' \
|
'-go[update the go directive in the go.mod file to the given version]:goversion' \
|
||||||
'-compat[preserves additional checksums needed for the indicated Go version]:version'
|
'-compat[preserves additional checksums needed for the indicated Go version]:version'
|
||||||
;;
|
;;
|
||||||
|
@ -897,45 +899,57 @@ case $state in
|
||||||
'*:files:_files'
|
'*:files:_files'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
link)
|
(link)
|
||||||
_arguments \
|
_arguments \
|
||||||
'-B[add an ELF NT_GNU_BUILD_ID note when using ELF]:note' \
|
'-B[add an ELF NT_GNU_BUILD_ID note when using ELF]:note' \
|
||||||
'-C[check Go calls to C code]' \
|
|
||||||
'-D[set data segment address (default -1)]:address' \
|
|
||||||
'-E[set entry symbol name]:entry' \
|
'-E[set entry symbol name]:entry' \
|
||||||
'-H[set header type]:type' \
|
'-H[set header type]:type' \
|
||||||
'-I[use linker as ELF dynamic linker]:linker' \
|
'-I[use linker as ELF dynamic linker]:linker' \
|
||||||
'-L[add specified directory to library path]:directory' \
|
'-L[add specified directory to library path]:directory:_path_files -/' \
|
||||||
'-R[set address rounding quantum (default -1)]:quantum' \
|
'-R[set address rounding quantum (default -1)]:quantum' \
|
||||||
'-T[set text segment address (default -1)]:address' \
|
'-T[set text segment address (default -1)]:address' \
|
||||||
'-V[print version and exit]' \
|
'(- *)-V[print version and exit]' \
|
||||||
'-W[disassemble input]' \
|
|
||||||
'-X[add string value definition]:definition' \
|
'-X[add string value definition]:definition' \
|
||||||
'-a[disassemble output]' \
|
'-asan[enable ASan interface]' \
|
||||||
|
'-aslr[enable ASLR for buildmode=c-shared on windows]' \
|
||||||
|
'-benchmark[set mode to enable phase benchmarking]:mode:(mem cpu)' \
|
||||||
|
'-benchmarkprofile[emit phase profiles]:base' \
|
||||||
|
'-bindnow[mark a synamically linked ELF object for immediate function binding]' \
|
||||||
'-buildid[record id as Go toolchain build id]:id' \
|
'-buildid[record id as Go toolchain build id]:id' \
|
||||||
'-buildmode[set build mode]:mode' \
|
'-buildmode[set build mode]:mode' \
|
||||||
'-c[dump call graph]' \
|
'-c[dump call graph]' \
|
||||||
'-cpuprofile[write cpu profile to file]:file' \
|
'-capturehostobjs[capture host object files loading duraing internal linking to specified dir]:dir:_path_files -/' \
|
||||||
|
'-checklinkname[check linkname symbol references]' \
|
||||||
|
'-compressdwarf[compress DWARF if possible]' \
|
||||||
|
'-cpuprofile[write cpu profile to file]:file:_files' \
|
||||||
'-d[disable dynamic executable]' \
|
'-d[disable dynamic executable]' \
|
||||||
|
'-debugnosplit[dump nosplit call graph]' \
|
||||||
|
'-debugtextsize[debug text section max size]:size' \
|
||||||
|
'-debugtramp[debug trampolines]:num' \
|
||||||
|
'-extar[archive program for buildmode=c-archive]:program' \
|
||||||
'-extld[use linker when linking in external mode]:linker' \
|
'-extld[use linker when linking in external mode]:linker' \
|
||||||
'-extldflags[pass flags to external linker]:flags' \
|
'-extldflags[pass flags to external linker]:flags' \
|
||||||
'-f[ignore version mismatch]' \
|
'-f[ignore version mismatch]' \
|
||||||
'-g[disable go package data checks]' \
|
'-g[disable go package data checks]' \
|
||||||
'-h[halt on error]' \
|
'-h[halt on error]' \
|
||||||
|
'-importcfg[read import configuration from file]:config:_files' \
|
||||||
'-installsuffix[set package directory suffix]:suffix' \
|
'-installsuffix[set package directory suffix]:suffix' \
|
||||||
'-k[set field tracking symbol]:symbol' \
|
'-k[set field tracking symbol]:symbol' \
|
||||||
|
'-libgcc[compiler support lib for internal linking; use "none" to disable]:lib:(none)' \
|
||||||
'-linkmode[set link mode]:mode:(internal external auto)' \
|
'-linkmode[set link mode]:mode:(internal external auto)' \
|
||||||
'-linkshared[link against installed Go shared libraries]' \
|
'-linkshared[link against installed Go shared libraries]' \
|
||||||
'-memprofile[write memory profile to file]:file' \
|
'-memprofile[write memory profile to file]:file' \
|
||||||
'-memprofilerate[set runtime.MemProfileRate to rate]:rate' \
|
'-memprofilerate[set runtime.MemProfileRate to rate]:rate' \
|
||||||
'-n[dump symbol table]' \
|
'-msan[enable MSan interface]' \
|
||||||
'-o[write output to file]:file' \
|
'-o[write output to file]:file:_files' \
|
||||||
'-r[set the ELF dynamic linker search path to dir1:dir2:...]:path' \
|
'-pluginpath[full path name for plugin]:path:_path_files -/' \
|
||||||
|
'-pruneweakmap[prune weak mapinit refs]' \
|
||||||
|
'-r[set the ELF dynamic linker search path to dir1:dir2:...]:path:_path_files -/' \
|
||||||
'-race[enable race detector]' \
|
'-race[enable race detector]' \
|
||||||
|
'-randlayout[randomize function layout]' \
|
||||||
'-s[disable symbol table]' \
|
'-s[disable symbol table]' \
|
||||||
'-shared[generate shared object (implies -linkmode external)]' \
|
'-strictdups[sanity check duplicate symbol contents during object file reading]:level:((1\:"warn" 2\:"err"))' \
|
||||||
'-tmpdir[use directory for temporary files]:directory' \
|
'-tmpdir[use directory for temporary files]:directory:_path_files -/' \
|
||||||
'-u[reject unsafe packages]' \
|
|
||||||
'-v[print link trace]' \
|
'-v[print link trace]' \
|
||||||
'-w[disable DWARF generation]' \
|
'-w[disable DWARF generation]' \
|
||||||
'*:files:_files'
|
'*:files:_files'
|
||||||
|
|
Loading…
Reference in New Issue