Skip to content

Instantly share code, notes, and snippets.

@mhamrah
Created June 17, 2020 12:19
Show Gist options
  • Save mhamrah/f7caefbf23d922c8c0123d95c4b74759 to your computer and use it in GitHub Desktop.
Save mhamrah/f7caefbf23d922c8c0123d95c4b74759 to your computer and use it in GitHub Desktop.
rootdir: protorepo
sources:
- 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
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.
args: paths=source_relative # args will be passed in to the plugin flag
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment