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

15 lines
283 B
Bash
Executable File

#!/bin/bash
export PATH="$PATH:$(go env GOPATH)/bin"
mkdir -p "pkg/grpc"
protoc \
--proto_path=third_party/grpc-proto \
--go_out=pkg/grpc \
--go_opt=paths=source_relative \
--go-grpc_out=pkg/grpc \
--go-grpc_opt=paths=source_relative \
third_party/grpc-proto/*.proto