mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
plugins/go: Simplify/fix recursive golang format (#7027)
Per the [`go` command specification](https://golang.org/cmd/go/#hdr-Package_lists), the `...` wildcard matches the empty string. This makes commands like `go <action> . ./...` unnecessary: they should use `go <action> ./...`. This also fixes a bug with the `gofa` shortcut, where it would emit an error if called from a directory containing no go source files (but having subdirectories that _did_ contain go files).
This commit is contained in:
parent
0cc371181a
commit
8961a3794c
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ alias gob='go build'
|
||||||
alias goc='go clean'
|
alias goc='go clean'
|
||||||
alias god='go doc'
|
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 goi='go install'
|
alias goi='go install'
|
||||||
alias gol='go list'
|
alias gol='go list'
|
||||||
|
|
Loading…
Reference in a new issue