-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
24 lines (18 loc) · 1.04 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
mock:
mockgen -source=go/database/telegram_chat_manager.go -destination=go/database/mock_types/telegram_chat_manager.go
mockgen -source=go/database/discord_channel_manager.go -destination=go/database/mock_types/discord_channel_manager.go
generate-protobufs:
protoc -I=api/ --go_out=go/services/grpc/protobuf/ --go_opt=module=github.com/shifty11/cosmos-notifier/services/grpc/protobuf \
--go-grpc_out=go/services/grpc/protobuf/ --go-grpc_opt=module=github.com/shifty11/cosmos-notifier/services/grpc/protobuf \
--dart_out=grpc:webapp/lib/api/protobuf/dart/ api/*.proto && \
protoc -I=api/ --dart_out=grpc:webapp/lib/api/protobuf/dart/ google/protobuf/timestamp.proto google/protobuf/empty.proto google/protobuf/duration.proto
generate-models:
cd go && go generate ./ent
visualize-models:
cd go && go run -mod=mod ariga.io/entviz ./ent/schema/
generate-migrations:
cd go && go run main.go database create-migrations
migrate:
cd go && go run main.go database migrate
test-go:
cd go && go test ./...