Refactor some things around a little

This commit is contained in:
2025-03-25 23:16:03 +01:00
parent 64f690f6b4
commit 73d93367a0
5 changed files with 38 additions and 97 deletions

View File

@@ -134,7 +134,8 @@ func main() {
defer wg.Done()
logger.Printf("Processing file: %s", file)
modCount, matchCount, err := proc.Process(file, pattern, luaExpr)
// It's a bit fucked, maybe I could do better to call it from proc... But it'll do for now
modCount, matchCount, err := processor.Process(proc, file, pattern, luaExpr)
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to process file %s: %v\n", file, err)
stats.FailedFiles++