moul / protoc-gen-gotemplate

:open_file_folder: generic protocol generator based on golang's text/template (grpc/protobuf)
https://manfred.life/protoc-gen-gotemplate
MIT License
430 stars 70 forks source link

Can I skip the generation of imported files? #146

Closed batazor closed 4 years ago

batazor commented 4 years ago
syntax = "proto3";

import "google/protobuf/timestamp.proto";
import "google/protobuf/struct.proto";

message MyType {}

Generate:

# Code generated by protoc-gen-gotemplate. DO NOT EDIT.

# Types
# -------
type Timestamp {
    seconds:  String! 
    nanos:  String! 
}
# Code generated by protoc-gen-gotemplate. DO NOT EDIT.

# Types
# -------
type Struct {
    fields:  FieldsEntry! 
}
....codegen
# Code generated by protoc-gen-gotemplate. DO NOT EDIT.

# Types
# -------
type MyType {}

How generate only my message MyType ?