fix: Resolve cfg redeclaration and update ignore patterns field

This commit is contained in:
Arik Jones (aider)
2024-09-05 23:06:44 -05:00
parent 5ab1a97f1c
commit 431d084d2c
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -16,7 +16,6 @@ import (
var (
urls []string
outputFile string
cfg *config.Config
)
var webCmd = &cobra.Command{