-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
27 lines (25 loc) · 901 Bytes
/
main.go
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
package main
import (
pgs "github.com/lyft/protoc-gen-star/v2"
tpp "github.com/trinsic-id/protoc-gen-sdk/postprocessors"
"google.golang.org/protobuf/types/pluginpb"
)
func main() {
supportOptional := uint64(pluginpb.CodeGeneratorResponse_FEATURE_PROTO3_OPTIONAL)
pgs.Init(pgs.DebugMode(), pgs.SupportedFeatures(&supportOptional)).
RegisterModule(TrinsicDart()).
RegisterModule(TrinsicDotnet()).
RegisterModule(TrinsicDashboardFrontend()).
RegisterModule(TrinsicGolangInterface()).
RegisterModule(TrinsicGolangImplementation()).
RegisterModule(TrinsicJava()).
RegisterModule(TrinsicKotlin()).
RegisterModule(TrinsicPython()).
RegisterModule(TrinsicRuby()).
RegisterModule(TrinsicSwift()).
RegisterModule(TrinsicTypescript()).
RegisterModule(TrinsicDocs()).
RegisterPostProcessor(tpp.ApplyTemplateFiles()).
RegisterPostProcessor(tpp.AppendSampleFiles()).
Render()
}