We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 261d298 commit 63400d7Copy full SHA for 63400d7
product-api/Makefile
@@ -1,7 +1,11 @@
1
.DEFAULT_GOAL := swagger
2
3
-check_install:
4
- which swagger || GO111MODULE=off go get -u github.com/go-swagger/go-swagger/cmd/swagger
+install_swagger:
+ go get -u github.com/go-swagger/go-swagger/cmd/swagger
5
6
-swagger: check_install
7
- GO111MODULE=off swagger generate spec -o ./swagger.yaml --scan-models
+swagger:
+ @echo Ensure you have the swagger CLI or this command will fail.
8
+ @echo You can install the swagger CLI with: go get -u github.com/go-swagger/go-swagger/cmd/swagger
9
+ @echo ....
10
+
11
+ swagger generate spec -o ./swagger.yaml --scan-models
0 commit comments