odds-crawler-proto/script/proto_go.sh

8 lines
138 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
TARGET_DIR=$1
protoc -I ${TARGET_DIR}/ ${TARGET_DIR}/*.proto --go_out=plugins=grpc:${TARGET_DIR}/generated