mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-05 16:02:12 +00:00
15 lines
399 B
Makefile
15 lines
399 B
Makefile
.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
|