From 431d084d2c4d55e9ec69ab06b869ba1c1806d5e3 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Thu, 5 Sep 2024 23:06:44 -0500 Subject: [PATCH] fix: Resolve cfg redeclaration and update ignore patterns field --- cmd/root.go | 4 ++-- cmd/web.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index bd82f3f..9f0867b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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, ",") } diff --git a/cmd/web.go b/cmd/web.go index f4c8d95..5d7fcc2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -16,7 +16,6 @@ import ( var ( urls []string outputFile string - cfg *config.Config ) var webCmd = &cobra.Command{