Format all files after swagger-gen (#2283)

This commit is contained in:
Cesar Celis Hernandez
2022-08-29 23:53:50 -04:00
committed by GitHub
parent 288c843a17
commit 67af66fc55

View File

@@ -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