protogen is a program that scans a directory structure for *.proto files and
generates go code from them.
It takes a yaml file as input that describes the conditions around the
code generation.
# protoc_path is the path to the protoc compiler
protoc_path: $PROJ_ROOT/.tools/bin/protoc
# include_paths are the include file search paths
include_paths:
- $PROJ_ROOT
# go_opts are the go options for protoc
go_opts:
- paths=source_relative
# go_plugins are the plugins to be used
go_plugins:
- grpc
# go_out is the root directory for output
go_out: $PROJ_ROOT
# paths are the paths to scan for *.proto files
paths:
- $PROJ_ROOT/pkg
# excluded_paths are paths that should not be considered when running protoc
excluded_paths:
- $PROJ_ROOT/pkg/excluded