bdledger-apis/gen-go.bat
huyingcong 08f427899c change go_package path
Summary: change go_package path

Test Plan: none

Reviewers: nex, wuyi

Reviewed By: nex

Differential Revision: https://phabricator.internetapi.cn/D29
2020-01-08 10:04:41 +08:00

19 lines
585 B
Batchfile

@echo off
set dir=.\gen\go
set exe=protoc
set gen=protoc-gen-go
if defined GOPATH set PATH=%PATH%;%GOPATH%\bin
where /q %exe% || echo missing %exe% && exit /B
where /q %gen% || echo missing %gen% && exit /B
if not exist %dir% mkdir %dir%
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/common.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/error_details.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/ledger.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/query.proto
%exe% -I . --go_out=plugins=grpc:%dir% bdledger/api/node.proto
echo all done