bdledger-apis/scripts/gen-go.sh
2020-03-31 21:19:44 +08:00

12 lines
462 B
Bash

#!/usr/bin/env bash
cd "${0%/*}/.."
dir=gen/nodejs
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
protoc -I . --go_out=plugins=grpc:$dir bdledger/api/contract.proto