This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
plug-sdk/scripts/generate_grpc_files.sh

13 lines
241 B
Bash
Raw Permalink Normal View History

2024-02-20 09:45:07 +00:00
#!/bin/bash
2024-02-20 18:11:34 +00:00
mkdir -p "pkg/grpc"
2024-02-20 09:45:07 +00:00
protoc \
--proto_path=third_party/grpc-proto \
2024-02-20 18:11:34 +00:00
--go_out=pkg/grpc \
2024-02-20 09:45:07 +00:00
--go_opt=paths=source_relative \
2024-02-20 18:11:34 +00:00
--go-grpc_out=pkg/grpc \
2024-02-20 09:45:07 +00:00
--go-grpc_opt=paths=source_relative \
third_party/grpc-proto/*.proto