diff --git a/Makefile b/Makefile index 2b49ba6f0d8..9966ffb8bd1 100644 --- a/Makefile +++ b/Makefile @@ -138,6 +138,16 @@ go.sum: go.mod ### Documentation ### ############################################################################### +update-swagger-docs: statik + $(BINDIR)/statik -src=docs/client/swagger-ui -dest=docs/client -f -m + @if [ -n "$(git status --porcelain)" ]; then \ + echo "\033[91mSwagger docs are out of sync!!!\033[0m";\ + exit 1;\ + else \ + echo "\033[92mSwagger docs are in sync\033[0m";\ + fi +.PHONY: update-swagger-docs + godocs: @echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/cosmos/cosmos-sdk/types" godoc -http=:6060