protogen: Handle files in all packages
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
a0a9b765f3
commit
595eb3334a
1 changed files with 1 additions and 5 deletions
|
@ -16,11 +16,7 @@ var (
|
|||
func main() {
|
||||
protogen.Options{}.Run(func(gen *protogen.Plugin) error {
|
||||
for _, f := range gen.Files {
|
||||
//if !f.Generate {
|
||||
// continue
|
||||
//}
|
||||
imp := string(f.GoImportPath)
|
||||
if strings.HasSuffix(imp, "/tree") || strings.HasSuffix(imp, "/control") {
|
||||
if f.Generate {
|
||||
generateFile(gen, f)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue