Hallucinate more logs fix(utils/db.go): handle auto migration errors gracefully fix(utils/modifycommand.go): improve file matching accuracy fix(processor/regex.go): improve capture group deduplication logic fix(utils/db.go): add logging for database wrapper initialization feat(processor/regex.go): preserve input order when deduplicating capture groups fix(utils/modifycommand.go): add logging for file matching skips feat(processor/regex.go): add logging for capture group processing feat(main.go): add trace logging for arguments and parallel workers fix(main.go): add trace logging for file content fix(utils/db.go): add logging for database opening fix(main.go): add trace logging for file processing fix(utils/modifycommand.go): improve file matching by using absolute paths feat(modifycommand.go): add trace logging for file matching in AssociateFilesWithCommands feat(main.go): add per-file association summary for better visibility when debugging
21 lines
532 B
Go
21 lines
532 B
Go
package utils
|
|
|
|
import (
|
|
"flag"
|
|
|
|
logger "git.site.quack-lab.dev/dave/cylogger"
|
|
)
|
|
|
|
// flagsLogger is a scoped logger for the utils/flags package.
|
|
var flagsLogger = logger.Default.WithPrefix("utils/flags")
|
|
|
|
var (
|
|
ParallelFiles = flag.Int("P", 100, "Number of files to process in parallel")
|
|
Filter = flag.String("f", "", "Filter commands before running them")
|
|
)
|
|
|
|
func init() {
|
|
flagsLogger.Debug("Initializing flags")
|
|
flagsLogger.Trace("ParallelFiles initial value: %d, Filter initial value: %q", *ParallelFiles, *Filter)
|
|
}
|