diff options
| author | Jeff Carr <[email protected]> | 2024-11-05 05:58:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-05 05:58:54 -0600 |
| commit | e6f883a9b5e62cb5d52e5c2dbc37d3d15db11b12 (patch) | |
| tree | 620db1fe82c940fe78b17a9bd160d4c0cfc481b0 /unix.go | |
| parent | 8eb7501855d71941784d27b6dfe71c7a53699f0a (diff) | |
final commits before releasev0.22.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -466,3 +466,22 @@ func ScanGitDirectories(srcDir string) []string { return all } + +func ScanForProtobuf(srcDir string) ([]string, error) { + var protofiles []string + err := filepath.Walk(srcDir, func(path string, info os.FileInfo, err error) error { + if err != nil { + log.Log(REPOWARN, "Error accessing path:", path, err) + return err + } + + if strings.HasSuffix(path, ".proto") { + // + protofiles = append(protofiles, path) + } + + return nil + }) + + return protofiles, err +} |
