bdledger-apis/gen-go.sh

10 lines
387 B
Bash
Raw Normal View History

2018-09-09 11:13:05 +00:00
#!/usr/bin/env bash
2020-03-07 05:53:11 +00:00
cd "${0%/*}"
dir=gen/go
mkdir -p $dir
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/common.proto
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/error_details.proto
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/node.proto
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/ledger.proto
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/query.proto