summaryrefslogtreecommitdiff
path: root/repo.common.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.common.go')
-rw-r--r--repo.common.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/repo.common.go b/repo.common.go
index 2289eed..9e1233d 100644
--- a/repo.common.go
+++ b/repo.common.go
@@ -26,6 +26,10 @@ func (r *Repo) IsGoPlugin() bool {
return false
}
+func (repo *Repo) IsProtobuf() bool {
+ return repo.GoInfo.GoProtobuf
+}
+
// This returns the list of autogenerated protobuf files
// it assumes any file *.pb.go is autogenerated
//
@@ -33,7 +37,7 @@ func (r *Repo) IsGoPlugin() bool {
// these packages also use go.wit.com/apps/autogenpb
//
// errors() if a .proto file does not have an autogenerated .pb.go file
-func (repo *Repo) IsProtobuf() (bool, []string, error) {
+func (repo *Repo) ScanProtobuf() (bool, []string, error) {
fullp, fullc, err := scanForProtobuf(repo.FullPath)
protos := make(map[string]string)
protoc := make(map[string]string)