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 { } else {
codeGenList = strings.Split(codeGenPatterns, ",") codeGenList = strings.Split(codeGenPatterns, ",")
} }
if cfg != nil && len(cfg.Ignore) > 0 { if cfg != nil && len(cfg.IgnorePatterns) > 0 {
ignoreList = cfg.Ignore ignoreList = cfg.IgnorePatterns
} else { } else {
ignoreList = strings.Split(ignorePatterns, ",") ignoreList = strings.Split(ignorePatterns, ",")
} }

View File

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