Add wizard cli

This commit is contained in:
Ilya Groshev
2026-04-22 19:22:18 +03:00
parent 3bc8ed94c7
commit 7cc8f18801
6 changed files with 808 additions and 3 deletions
+5 -2
View File
@@ -3,13 +3,16 @@
# (generating all would put them in one package and cause name clashes).
PROTO_USED = proto/banner.proto proto/battle.proto proto/bighunt.proto proto/cageornament.proto proto/character.proto proto/characterboard.proto proto/characterviewer.proto proto/companion.proto proto/config.proto proto/consumableitem.proto proto/contentsstory.proto proto/costume.proto proto/data.proto proto/deck.proto proto/dokan.proto proto/explore.proto proto/friend.proto proto/gacha.proto proto/gameplay.proto proto/gift.proto proto/gimmick.proto proto/labyrinth.proto proto/loginbonus.proto proto/material.proto proto/mission.proto proto/movie.proto proto/navicutin.proto proto/omikuji.proto proto/notification.proto proto/parts.proto proto/portalcage.proto proto/pvp.proto proto/quest.proto proto/reward.proto proto/shop.proto proto/sidestoryquest.proto proto/tutorial.proto proto/user.proto proto/weapon.proto
PROTOC ?= protoc
GOOSE ?= goose
EXE =
ifeq ($(OS),Windows_NT)
EXE = .exe
endif
proto:
protoc -I . $(PROTO_USED) --go_out=. --go_opt=module=lunar-tear/server --go-grpc_out=. --go-grpc_opt=module=lunar-tear/server
$(PROTOC) -I . $(PROTO_USED) --go_out=. --go_opt=module=lunar-tear/server --go-grpc_out=. --go-grpc_opt=module=lunar-tear/server
@echo "Generated in gen/proto/"
build:
@@ -36,7 +39,7 @@ ifeq ($(OS),Windows_NT)
else
mkdir -p db
endif
goose -dir migrations -allow-missing sqlite3 db/game.db up
$(GOOSE) -dir migrations -allow-missing sqlite3 db/game.db up
import:
ifndef SNAPSHOT