Merge pull request #883 from zsh-users/go-env-completion
Update go environment variable completion
This commit is contained in:
		
						commit
						85a0874060
					
				
							
								
								
									
										12
									
								
								src/_golang
								
								
								
								
							
							
						
						
									
										12
									
								
								src/_golang
								
								
								
								
							|  | @ -253,12 +253,12 @@ __go_envvarvals() { | ||||||
|       ;& |       ;& | ||||||
|     GOOS) |     GOOS) | ||||||
|       # from https://golang.org/doc/install/source#environment |       # from https://golang.org/doc/install/source#environment | ||||||
|       _values 'operating system' aix android darwin dragonfly freebsd illumos js linux netbsd openbsd plan9 solaris windows |       _values 'operating system' aix android darwin dragonfly freebsd illumos ios js linux netbsd openbsd plan9 solaris windows | ||||||
|       ;; |       ;; | ||||||
|     GOHOSTARCH) |     GOHOSTARCH) | ||||||
|       ;& |       ;& | ||||||
|     GOARCH) |     GOARCH) | ||||||
|       _values 'architecture' amd64 386 arm ppc64 |       _values 'architecture' amd64 386 arm64 arm ppc64 ppc64le mips mipsle mips64 mips64le riscv64 s390x wasm | ||||||
|       ;; |       ;; | ||||||
|     CGO_ENABLED) |     CGO_ENABLED) | ||||||
|       _values 'enable/disable cgo' 0 1 |       _values 'enable/disable cgo' 0 1 | ||||||
|  | @ -272,9 +272,15 @@ __go_envvarvals() { | ||||||
|     GO386) |     GO386) | ||||||
|       _values 'x86 floating point instruction set' 387 sse2 |       _values 'x86 floating point instruction set' 387 sse2 | ||||||
|       ;; |       ;; | ||||||
|  |     GOAMD64) | ||||||
|  |       _values 'amd64 instruction set' v1 v2 v3 v4 | ||||||
|  |       ;; | ||||||
|     GOMIPS*) |     GOMIPS*) | ||||||
|       _values 'mips floating point instructions' hardfloat softfloat |       _values 'mips floating point instructions' hardfloat softfloat | ||||||
|       ;; |       ;; | ||||||
|  |     GOPPC64) | ||||||
|  |       _values 'powerpc64 instruction set' power8 power9 | ||||||
|  |       ;; | ||||||
|     GOWASM) |     GOWASM) | ||||||
|       _values 'web assembly features' -s ',' satconv signext |       _values 'web assembly features' -s ',' satconv signext | ||||||
|       ;; |       ;; | ||||||
|  | @ -469,8 +475,10 @@ case $state in | ||||||
|           "PKG_CONFIG[Path to pkg-config tool.]:path to pkg-config" |           "PKG_CONFIG[Path to pkg-config tool.]:path to pkg-config" | ||||||
|           "GOARM[arm architecture]:arm architecture" |           "GOARM[arm architecture]:arm architecture" | ||||||
|           "GO386[x86 instruction set]:x86 instruction set" |           "GO386[x86 instruction set]:x86 instruction set" | ||||||
|  |           "GOAMD64[amd64 instruction set]:amd64 instruction set" | ||||||
|           "GOMIPS[mips instruction set]:mips instruction set" |           "GOMIPS[mips instruction set]:mips instruction set" | ||||||
|           "GOMIPS64[mips64 instruction set]:mips64 instruction set" |           "GOMIPS64[mips64 instruction set]:mips64 instruction set" | ||||||
|  |           "GOPPC64[powerpc64 instruction set]:powerpc64 instruction set" | ||||||
|           "GOWASM[web assembly features]:comma separated web assembly features" |           "GOWASM[web assembly features]:comma separated web assembly features" | ||||||
|           "GCCGOTOOLDIR[directory of gccgo tools]:gccgo tool directory" |           "GCCGOTOOLDIR[directory of gccgo tools]:gccgo tool directory" | ||||||
|           "GOROOT_FINAL[root of the go tree]:go root" |           "GOROOT_FINAL[root of the go tree]:go root" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue