From d97330571ef9bf5a21610db041b6da5f7712bc71 Mon Sep 17 00:00:00 2001 From: Nex Date: Sat, 7 Mar 2020 13:53:11 +0800 Subject: [PATCH] Format scripts --- gen-go.bat | 2 +- gen-go.sh | 2 +- gen-web.bat | 2 +- gen-web.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gen-go.bat b/gen-go.bat index ef0fa5c..10f6f97 100644 --- a/gen-go.bat +++ b/gen-go.bat @@ -11,8 +11,8 @@ 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/node.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 diff --git a/gen-go.sh b/gen-go.sh index 617ffc7..ec49572 100644 --- a/gen-go.sh +++ b/gen-go.sh @@ -2,6 +2,6 @@ mkdir -p gen/go protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/common.proto protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/error_details.proto +protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/node.proto protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/ledger.proto protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/query.proto -protoc -I . --go_out=plugins=grpc:gen/go bdledger/api/node.proto diff --git a/gen-web.bat b/gen-web.bat index 4329193..b03204a 100644 --- a/gen-web.bat +++ b/gen-web.bat @@ -9,8 +9,8 @@ where /q %gen% || echo missing %gen% && exit /B if not exist %dir% mkdir %dir% %exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/common.proto %exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/error_details.proto +%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/node.proto %exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/ledger.proto %exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/query.proto -%exe% -I . --js_out=import_style=commonjs:%dir% --grpc-web_out=import_style=commonjs,mode=grpcwebtext:%dir% bdledger/api/node.proto echo all done diff --git a/gen-web.sh b/gen-web.sh index 0a07ce3..60a5041 100644 --- a/gen-web.sh +++ b/gen-web.sh @@ -3,6 +3,6 @@ dir=gen/web mkdir -p $dir protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/common.proto protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/error_details.proto +protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/node.proto protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/ledger.proto protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/query.proto -protoc -I . --js_out=import_style=commonjs:$dir --grpc-web_out=import_style=commonjs,mode=grpcwebtext:$dir bdledger/api/node.proto