File size: 399 Bytes
f1dd159 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | .PHONY: run swagger
CONFIG ?= $(CURDIR)/config.yaml
run:
cd backend && GOCACHE=$(CURDIR)/.gocache go run ./cmd/grok2api --config "$(abspath $(CONFIG))" $(RUN_ARGS)
swagger:
cd backend && GOCACHE=$(CURDIR)/.gocache go run github.com/swaggo/swag/cmd/swag@v1.16.6 init \
-g main.go \
-d cmd/grok2api,internal/transport/http \
--parseInternal \
--output docs \
--outputTypes go,json,yaml
|