-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathomniproto.yaml
24 lines (24 loc) · 1.21 KB
/
omniproto.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
rootdir: protorepo-example # protorepo is the default root dir
sources: # all sources will be passed together
- grpckit/accounts # non-proto entries will be searched for proto files, and named relative to root dir.
- grpckit/books/books.proto # you can specify specific files ending with .proto
- grpckit/base.proto
output: gen # gen is the default output directory (should be gitignored)
plugins:
- name: go # the name of the plugin will be suffixed with _out, i.e. go_out.
opts:
# opts will be passed in to the plugin flag, assuming the plugin supports
# --plugin_opt
# Ref: https://github.com/protocolbuffers/protobuf/blob/fa5a69e73b0dd667ff15062adbc170310d440ee9/src/google/protobuf/compiler/command_line_interface.h#L174
- paths=source_relative
- name: validate
args: lang=go
- name: python
output: gen-py # you can override outputs on a per-plugin basis
descriptors:
output: gen/descriptors.pb # defaults to descriptors.pb in root output directory
enabled: true # defaults to true, descriptors are useful
include_imports: true
include_source_info: true
debug: true # debug will output command line information
dry_run: false # if true, don't execute the protoc command. useful with debug.