gomods
CLI tool to execute a command on every go module in the tree
$ gomods --help
Usage of gomods:
-c command: command string execution with 'sh -c' prefix
-f force: continue execution even if dependencies failed
-go
go: execute with 'go' prefix
-s string
skip: comma separated list of paths to skip
-u unordered: execute without waiting for dependencies
-v verbose: detailed logs
-w without: without 'go mod' prefix
w/ go mod
$ gomods download
$ gomods tidy
$ gomods list
$ gomods graph
w/o go mod
$ gomods -w go generate ./...
$ gomods -w go test ./...
$ gomods -w cat go.mod
w/ go
$ gomods -go generate ./...
$ gomods -go build ./...
$ gomods -go test ./...