Add fmt target

This adds a target that allows the users to run goimports
across the entire repo.
This commit is contained in:
Sargun Dhillon
2020-11-16 03:49:02 -08:00
parent 79d2ef1f12
commit 0b946848ee

View File

@@ -191,3 +191,7 @@ envtest: kubebuilder_2.3.1_${TEST_OS}_${TEST_ARCH}
# You can add klog flags for debugging, like: -klog.v=10 -klog.logtostderr
# klogv2 flags just wraps our existing logrus.
go test -v ./internal/test/vk_envtest -envtest=true
.PHONY: fmt
fmt:
goimports -w $(shell go list -f '{{.Dir}}' ./...)