2025-01-10 11:12:03 +00:00
|
|
|
---
|
2024-12-19 11:38:57 +00:00
|
|
|
# https://taskfile.dev
|
|
|
|
|
|
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
vars:
|
2025-01-10 11:12:03 +00:00
|
|
|
PROTO_DIR: serviceInterfaces
|
|
|
|
|
API_DIR: api
|
2024-12-19 11:38:57 +00:00
|
|
|
|
|
|
|
|
tasks:
|
2025-01-07 13:01:14 +00:00
|
|
|
lint:
|
|
|
|
|
cmds:
|
|
|
|
|
- protolint lint {{.PROTO_DIR}}
|
|
|
|
|
lint:fix:
|
|
|
|
|
cmds:
|
|
|
|
|
- protolint lint -fix {{.PROTO_DIR}}
|
2024-12-19 11:38:57 +00:00
|
|
|
generate:
|
|
|
|
|
cmds:
|
2025-01-10 11:12:03 +00:00
|
|
|
- |
|
|
|
|
|
protoc --proto_path={{.PROTO_DIR}} \
|
|
|
|
|
--go_out={{.API_DIR}}/serviceInterfaces --go-grpc_out={{.API_DIR}} \
|
|
|
|
|
--go_opt=paths=source_relative --experimental_allow_proto3_optional \
|
|
|
|
|
main.proto
|