예제 #1
0
 def do_build_flow(self, **kwargs):
     flow = linear_flow.Flow('core-protogen')
     flow.add(
         protoc_tasks.ProtoCodeGenTask('CoreProtoGen', inject=kwargs),
         veneer_tasks.GoExtractImportBaseTask('ExtractGoPackageName',
                                              inject=kwargs),
         protoc_tasks.GoLangUpdateImportsTask('UpdateImports',
                                              inject=kwargs))
     return flow
예제 #2
0
 def do_build_flow(self, **kwargs):
     flow = linear_flow.Flow('grpc-codegen')
     flow.add(protoc_tasks.ProtoCodeGenTask('ProtoGen', inject=kwargs),
              protoc_tasks.GrpcCodeGenTask('GrpcCodegen', inject=kwargs))
     return flow