Skip to content

Commit

Permalink
Add script for generating proto files
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed May 30, 2023
1 parent 4b1f647 commit 0569118
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/generate_protos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PROTOBUF_PATH=../api

mkdir -p $PROTOBUF_PATH/router
protoc --proto_path=$PROTOBUF_PATH --go_out=$PROTOBUF_PATH/router --go_opt=paths=source_relative --go-grpc_out=$PROTOBUF_PATH/router --go-grpc_opt=paths=source_relative router.proto

mkdir -p $PROTOBUF_PATH/shardnode
protoc --proto_path=$PROTOBUF_PATH --go_out=$PROTOBUF_PATH/shardnode --go_opt=paths=source_relative --go-grpc_out=$PROTOBUF_PATH/shardnode --go-grpc_opt=paths=source_relative shardnode.proto

0 comments on commit 0569118

Please sign in to comment.