1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-11-24 08:22:42 +02:00

сделал .sh

This commit is contained in:
Nikitin Aleksandr 2024-11-20 17:29:24 +03:00
parent 4c4cde148d
commit 011dac013e
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
ADAPT_PATH=./
PATH_FROM=./
PATH_TO=./grpc_proto/
clear
protoc --go_out=${ADAPT_PATH} --go_opt=paths=import --go-grpc_out=${ADAPT_PATH} --go-grpc_opt=paths=import ${ADAPT_PATH}sync_service.proto
protoc --go_out=${PATH_TO} --go_opt=paths=import --go-grpc_out=${PATH_TO} --go-grpc_opt=paths=import ${PATH_FROM}sync_service.proto

View File

@ -1,6 +1,7 @@
#!/bin/bash
ADAPT_PATH=./
PATH_FROM=./
PATH_TO=./grpc_proto/
clear
protoc --go_out=${ADAPT_PATH} --nrpc_out=./ --go_opt=paths=import --go-grpc_out=${ADAPT_PATH} --go-grpc_opt=paths=import ${ADAPT_PATH}sync_service.proto
protoc --go_out=${PATH_TO} --nrpc_out=./ --go_opt=paths=import --go-grpc_out=${PATH_TO} --go-grpc_opt=paths=import ${PATH_FROM}sync_service.proto