summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-05 05:58:54 -0600
committerJeff Carr <[email protected]>2024-11-05 05:58:54 -0600
commite6f883a9b5e62cb5d52e5c2dbc37d3d15db11b12 (patch)
tree620db1fe82c940fe78b17a9bd160d4c0cfc481b0 /common.go
parent8eb7501855d71941784d27b6dfe71c7a53699f0a (diff)
final commits before releasev0.22.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'common.go')
-rw-r--r--common.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/common.go b/common.go
index bd1cc60..8895542 100644
--- a/common.go
+++ b/common.go
@@ -59,6 +59,15 @@ func (rs *RepoStatus) IsPrimitive() bool {
return false
}
+func (rs *RepoStatus) IsProtobuf() (bool, []string, error) {
+ log.Info("are there .proto files in:", rs.Path())
+ all, err := ScanForProtobuf(rs.Path())
+ for i, s := range all {
+ log.Info("found i, s:", i, s)
+ }
+ return false, all, err
+}
+
// returns the filesystem path to the repo
func (rs *RepoStatus) Path() string {
return rs.realPath.String()