From 29ec52602ff947675ea9a1788d62c0c552bd01af Mon Sep 17 00:00:00 2001 From: Muhammad Zahalqa Date: Thu, 16 Sep 2021 17:44:35 +0300 Subject: feat(golang): add `gota` to test current directory recursively (#8974) --- plugins/golang/README.md | 1 + plugins/golang/golang.plugin.zsh | 1 + 2 files changed, 2 insertions(+) (limited to 'plugins/golang') diff --git a/plugins/golang/README.md b/plugins/golang/README.md index 0a1b43c30..0c90aa10b 100644 --- a/plugins/golang/README.md +++ b/plugins/golang/README.md @@ -27,4 +27,5 @@ plugins=(... golang) | gops | `cd $GOPATH/src` | Takes you to $GOPATH/src | | gor | `go run` | Compiles and runs your code | | got | `go test` | Runs tests | +| gota | `go test ./...` | Runs tests in all subdirectories | | gov | `go vet` | Vet examines Go source code and reports suspicious constructs | diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh index 398bd966f..eedde2573 100644 --- a/plugins/golang/golang.plugin.zsh +++ b/plugins/golang/golang.plugin.zsh @@ -271,4 +271,5 @@ alias gopb='cd $GOPATH/bin' alias gops='cd $GOPATH/src' alias gor='go run' alias got='go test' +alias gota='go test ./...' alias gov='go vet' -- cgit v1.2.3-70-g09d2 From 4bd5d03e51ae289a986ab63e94bf4e1c96a75786 Mon Sep 17 00:00:00 2001 From: Tristan Messner Date: Sun, 21 Apr 2019 20:20:23 -0400 Subject: feat(golang): add `goga` alias to install dependencies in current directory, recursively (#7786) Closes #7786 --- plugins/golang/README.md | 1 + plugins/golang/golang.plugin.zsh | 1 + 2 files changed, 2 insertions(+) (limited to 'plugins/golang') diff --git a/plugins/golang/README.md b/plugins/golang/README.md index 0c90aa10b..af2c4dff9 100644 --- a/plugins/golang/README.md +++ b/plugins/golang/README.md @@ -19,6 +19,7 @@ plugins=(... golang) | gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. | | 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 ./...` | Installs all dependencies in current directory, recursively | | goi | `go install` | Compiles and installs packages to $GOPATH | | gol | `go list` | Lists Go packages | | gom | `go mod` | Access to operations on modules | diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh index eedde2573..fce663fd6 100644 --- a/plugins/golang/golang.plugin.zsh +++ b/plugins/golang/golang.plugin.zsh @@ -263,6 +263,7 @@ alias god='go doc' alias gof='go fmt' alias gofa='go fmt ./...' alias gog='go get' +alias goga='go get ./...' alias goi='go install' alias gol='go list' alias gom='go mod' -- cgit v1.2.3-70-g09d2