Add fmt target
This adds a target that allows the users to run goimports across the entire repo.
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
# You can add klog flags for debugging, like: -klog.v=10 -klog.logtostderr
|
||||||
# klogv2 flags just wraps our existing logrus.
|
# klogv2 flags just wraps our existing logrus.
|
||||||
go test -v ./internal/test/vk_envtest -envtest=true
|
go test -v ./internal/test/vk_envtest -envtest=true
|
||||||
|
|
||||||
|
.PHONY: fmt
|
||||||
|
fmt:
|
||||||
|
goimports -w $(shell go list -f '{{.Dir}}' ./...)
|
||||||
|
|||||||
Reference in New Issue
Block a user