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