From 876b2d8917d52348f73c4d9757f65499985e7971 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Thu, 5 Sep 2024 23:07:51 -0500 Subject: [PATCH] refactor: Update field names and comment out undefined function call --- cmd/root.go | 4 ++-- cmd/web.go | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index bd82f3f..6149fa5 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 && cfg.IgnorePatterns != nil && len(cfg.IgnorePatterns) > 0 { + ignoreList = cfg.IgnorePatterns } else { ignoreList = strings.Split(ignorePatterns, ",") } diff --git a/cmd/web.go b/cmd/web.go index 5d7fcc2..849ecb2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -128,10 +128,11 @@ func extractAndConvertContent(urlStr string) (string, error) { // Use the CSS locator from the config cssLocator := cfg.Scrape.CSSLocator if cssLocator != "" { - content, err = scraper.ExtractContentWithCSS(content, cssLocator) - if err != nil { - return "", fmt.Errorf("error extracting content with CSS selector: %v", err) - } + // TODO: Implement content extraction with CSS selector + // content, err = scraper.ExtractContentWithCSS(content, cssLocator) + // if err != nil { + // return "", fmt.Errorf("error extracting content with CSS selector: %v", err) + // } } // Create a new converter