4bd5d03e51ae289a986ab63e94bf4e1c96a75786

Author
Tristan Messner <tristanmessner@gmail.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

feat(golang): add `goga` alias to install dependencies in current directory, recursively (#7786)

Closes #7786

Diff

 1diff --git a/plugins/golang/README.md b/plugins/golang/README.md
 2index 0c90aa10ba8cb3ed1151a0f4bc56b2de42842e3f..af2c4dff9c8874fe92bffdd7646c5c5b4809a7b4 100644
 3--- a/plugins/golang/README.md
 4+++ b/plugins/golang/README.md
 5@@ -19,6 +19,7 @@ plugins=(... golang)
 6 | gof     | `go fmt`                | Gofmt formats (aligns and indents) Go programs.               |
 7 | gofa    | `go fmt ./...`          | Run go fmt for all packages in current directory, recursively |
 8 | gog     | `go get`                | Downloads packages and then installs them to $GOPATH          |
 9+| gog     | `go get ./...`          | Installs all dependencies in current directory, recursively   |
10 | goi     | `go install`            | Compiles and installs packages to $GOPATH                     |
11 | gol     | `go list`               | Lists Go packages                                             |
12 | gom     | `go mod`                | Access to operations on modules                               |
13diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
14index eedde2573ac8af604d247b5852cb0c403415ced5..fce663fd6b43ca2feb85dcd0342b6fb0e5a8289c 100644
15--- a/plugins/golang/golang.plugin.zsh
16+++ b/plugins/golang/golang.plugin.zsh
17@@ -263,6 +263,7 @@ alias god='go doc'
18 alias gof='go fmt'
19 alias gofa='go fmt ./...'
20 alias gog='go get'
21+alias goga='go get ./...'
22 alias goi='go install'
23 alias gol='go list'
24 alias gom='go mod'