re-organized pattern matching code

This commit is contained in:
2022-10-25 18:34:28 +02:00
parent 417faf3ff2
commit 066ddd0d98
8 changed files with 90 additions and 43 deletions

View File

@@ -74,15 +74,10 @@ func Execute() {
conf.PrepareModeFlags(modeflag)
conf.PrepareSortFlags(sortmode)
conf.DetermineColormode()
if err := conf.PreparePattern(); err != nil {
return err
}
conf.ApplyDefaults()
// actual execution starts here
return lib.ProcessFiles(conf, args)
return lib.ProcessFiles(&conf, args)
},
}