feat: add sei plugin

This commit is contained in:
langhuihui
2024-10-03 15:19:50 +08:00
parent 0309298ab0
commit fd51d6df39
32 changed files with 885 additions and 162 deletions
+20 -2
View File
@@ -1,4 +1,22 @@
#!/bin/bash
protoc -I. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. \
--go-grpc_opt=paths=source_relative --grpc-gateway_out=. --grpc-gateway_opt=paths=source_relative ${1}.proto
name=$(basename $(pwd))
cd pb
# Run the protoc command
protoc -I. \
-I"../../../pb" \
--go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
--grpc-gateway_out=. \
--grpc-gateway_opt=paths=source_relative \
"${name}.proto"
# Check if the command was successful
if [ $? -eq 0 ]; then
echo "Proto files for ${name} built successfully"
else
echo "Error building proto files for ${name}"
exit 1
fi