fix: Update cfg.IgnorePatterns to cfg.Ignore in cmd/root.go

This commit is contained in:
Arik Jones (aider)
2024-09-05 23:07:15 -05:00
parent 431d084d2c
commit 4caf6f5646

View File

@@ -131,8 +131,8 @@ func runRollup() error {
} else {
codeGenList = strings.Split(codeGenPatterns, ",")
}
if cfg != nil && len(cfg.IgnorePatterns) > 0 {
ignoreList = cfg.IgnorePatterns
if cfg != nil && len(cfg.Ignore) > 0 {
ignoreList = cfg.Ignore
} else {
ignoreList = strings.Split(ignorePatterns, ",")
}