From 67af66fc553464f9f7d77d00b84c599420a615c9 Mon Sep 17 00:00:00 2001 From: Cesar Celis Hernandez Date: Mon, 29 Aug 2022 23:53:50 -0400 Subject: [PATCH] Format all files after swagger-gen (#2283) --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6ac173b9b..0e207304d 100644 --- a/Makefile +++ b/Makefile @@ -43,9 +43,13 @@ install: console @mkdir -p $(GOPATH)/bin && cp -f $(PWD)/console $(GOPATH)/bin/console @echo "Installation successful. To learn more, try \"console --help\"." -swagger-gen: clean-swagger swagger-console swagger-operator +swagger-gen: clean-swagger swagger-console swagger-operator apply-gofmt @echo "Done Generating swagger server code from yaml" +apply-gofmt: + @echo "Applying gofmt to all generated an existing files" + @GO111MODULE=on gofmt -w . + clean-swagger: @echo "cleaning" @rm -rf models