Files
orion_greptime_proto/scripts/generate-go.sh
T
2025-08-15 11:10:31 +08:00

13 lines
312 B
Bash
Executable File

#! /usr/bin/env bash
set -e
PROTO_ROOT=./proto
GO_OUTPUT=./go
protoc -I=${PROTO_ROOT} --go_out=paths=source_relative:${GO_OUTPUT} $(find ./proto/ -type f -iname "*.proto")
protoc -I=${PROTO_ROOT} \
--go-grpc_out=paths=source_relative:${GO_OUTPUT} \
$(find ./proto/ -type f -iname "*.proto")