Files
query-orchestration/scripts/proto.yml
T
Michael McGuinness a8493b3e93 lf
2024-12-19 11:38:57 +00:00

17 lines
467 B
YAML

# https://taskfile.dev
version: '3'
vars:
PROTO_DIR_WITH_CONTEXT: "{{.CONTEXT}}/{{.PROTOBUF_DIR}}"
tasks:
lint:
cmds:
- protolint lint {{.PROTO_DIR_WITH_CONTEXT}}
lint:fix:
cmds:
- protolint lint -fix {{.PROTO_DIR_WITH_CONTEXT}}
generate:
cmds:
- protoc --proto_path={{.PROTO_DIR_WITH_CONTEXT}} --go_out={{.CONTEXT}}/{{.API_GRPC_DIR}}/spec --go-grpc_out={{.CONTEXT}}/{{.API_GRPC_DIR}} --go_opt=paths=source_relative main.proto