-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuf.gen.example.yaml
33 lines (29 loc) · 1 KB
/
buf.gen.example.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
25
26
27
28
29
30
31
32
33
version: v1
managed:
enabled: true
go_package_prefix:
default: go.einride.tech/protoc-gen-go-cli/proto/cmd/examplectl
except:
- buf.build/googleapis/googleapis
plugins:
# The CLI generator requires the stubs generated by protoc-gen-go.
- name: go
out: cmd/examplectl
opt: module=go.einride.tech/protoc-gen-go-cli/proto/cmd/examplectl
path: ../.mage/tools/bin/protoc-gen-go
# The CLI generator also requires the stubs generated by protoc-gen-go-grpc.
- name: go-grpc
out: cmd/examplectl
opt: module=go.einride.tech/protoc-gen-go-cli/proto/cmd/examplectl
path: ../.mage/tools/bin/protoc-gen-go-grpc
# The CLI generator optionally generates a root command and a main file
# to the root of the output module.
- name: go-cli
out: cmd/examplectl
strategy: all
opt:
- module=go.einride.tech/protoc-gen-go-cli/proto/cmd/examplectl
- root=examplectl
- main=true
- gcloud_identity_tokens=true
path: ../.mage/tools/bin/protoc-gen-go-cli