mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2024-05-11 05:55:17 +00:00 
			
		
		
		
	feat(golang): add goga alias to install dependencies in current directory, recursively (#7786)
				
					
				
			Closes #7786
This commit is contained in:
		
				
					committed by
					
						 Marc Cornellà
						Marc Cornellà
					
				
			
			
				
	
			
			
			
						parent
						
							29ec52602f
						
					
				
				
					commit
					4bd5d03e51
				
			| @@ -19,6 +19,7 @@ plugins=(... golang) | |||||||
| | gof     | `go fmt`                | Gofmt formats (aligns and indents) Go programs.               | | | gof     | `go fmt`                | Gofmt formats (aligns and indents) Go programs.               | | ||||||
| | gofa    | `go fmt ./...`          | Run go fmt for all packages in current directory, recursively | | | gofa    | `go fmt ./...`          | Run go fmt for all packages in current directory, recursively | | ||||||
| | gog     | `go get`                | Downloads packages and then installs them to $GOPATH          | | | gog     | `go get`                | Downloads packages and then installs them to $GOPATH          | | ||||||
|  | | gog     | `go get ./...`          | Installs all dependencies in current directory, recursively   | | ||||||
| | goi     | `go install`            | Compiles and installs packages to $GOPATH                     | | | goi     | `go install`            | Compiles and installs packages to $GOPATH                     | | ||||||
| | gol     | `go list`               | Lists Go packages                                             | | | gol     | `go list`               | Lists Go packages                                             | | ||||||
| | gom     | `go mod`                | Access to operations on modules                               | | | gom     | `go mod`                | Access to operations on modules                               | | ||||||
|   | |||||||
| @@ -263,6 +263,7 @@ alias god='go doc' | |||||||
| alias gof='go fmt' | alias gof='go fmt' | ||||||
| alias gofa='go fmt ./...' | alias gofa='go fmt ./...' | ||||||
| alias gog='go get' | alias gog='go get' | ||||||
|  | alias goga='go get ./...' | ||||||
| alias goi='go install' | alias goi='go install' | ||||||
| alias gol='go list' | alias gol='go list' | ||||||
| alias gom='go mod' | alias gom='go mod' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user