generate.sh 624 B

12345678910111213141516171819202122
  1. protoc -I . \
  2. -I third_party \
  3. --go_out ./gen/go/ \
  4. --go_opt paths=source_relative \
  5. --gorm_out ./gen/go/ \
  6. --go-grpc_out ./gen/go/ \
  7. --go-grpc_opt paths=source_relative \
  8. --grpc-gateway_out ./gen/go \
  9. --grpc-gateway_opt logtostderr=true \
  10. --grpc-gateway_opt paths=source_relative \
  11. --grpc-gateway_opt generate_unbound_methods=true \
  12. --openapiv2_out ./gen/openapiv2 \
  13. --openapiv2_opt logtostderr=true \
  14. --godot_out ./gen/godot \
  15. proto-gorm/api/proto-gorm.proto
  16. #buf generate --path proto-gorm/api/
  17. find gen/go/ -iname *.go -exec mv {} gen/go \;
  18. find gen/go/* -type d -exec rm -r {} \;