I would like to add a "script" directory to make it a bit more convenient to run common development tasks. This follows the pattern of GitHub's scripts-to-rule-them-all.
The scripts would be:
script/test runs go test ./... on all modules.
script/generate
- runs
go generate ./... on all modules.
- with
--check validates that running script/generate produces no diff.
script/lint
- installs and runs golangci-lint on all modules (except newreposecretwithlibsodium)
- runs
generate --check.
script/fmt runs go fmt ./... on all modules.
I would like to add a "script" directory to make it a bit more convenient to run common development tasks. This follows the pattern of GitHub's scripts-to-rule-them-all.
The scripts would be:
script/testrunsgo test ./...on all modules.script/generatego generate ./...on all modules.--checkvalidates that runningscript/generateproduces no diff.script/lintgenerate --check.script/fmtrunsgo fmt ./...on all modules.