From eacc92ce4b0e2f7f27a0a6807f4922a0bc366f5f Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 2 Dec 2025 16:36:11 +0100 Subject: [PATCH] Rename GLob to glob --- glob_test.go | 2 +- main.go | 2 +- utils/modifycommand.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glob_test.go b/glob_test.go index 6dbf059..f17ac1c 100644 --- a/glob_test.go +++ b/glob_test.go @@ -82,7 +82,7 @@ func TestGlobExpansion(t *testing.T) { for _, pattern := range tc.patterns { patternMap[pattern] = struct{}{} } - files, err := utils.ExpandGLobs(patternMap) + files, err := utils.ExpandGlobs(patternMap) if err != nil { t.Fatalf("ExpandGLobs failed: %v", err) } diff --git a/main.go b/main.go index 9336def..cd49042 100644 --- a/main.go +++ b/main.go @@ -243,7 +243,7 @@ func runModifier(args []string, cmd *cobra.Command) { // Resolve all the files for all the globs mainLogger.Info("Found %d unique file patterns", len(globs)) mainLogger.Debug("Expanding glob patterns to files") - files, err := utils.ExpandGLobs(globs) + files, err := utils.ExpandGlobs(globs) if err != nil { mainLogger.Error("Failed to expand file patterns: %v", err) return diff --git a/utils/modifycommand.go b/utils/modifycommand.go index 0192dc8..248c006 100644 --- a/utils/modifycommand.go +++ b/utils/modifycommand.go @@ -7,8 +7,8 @@ import ( "strings" logger "git.site.quack-lab.dev/dave/cylogger" - "github.com/bmatcuk/doublestar/v4" "github.com/BurntSushi/toml" + "github.com/bmatcuk/doublestar/v4" "gopkg.in/yaml.v3" ) @@ -208,7 +208,7 @@ func AggregateGlobs(commands []ModifyCommand) map[string]struct{} { return globs } -func ExpandGLobs(patterns map[string]struct{}) ([]string, error) { +func ExpandGlobs(patterns map[string]struct{}) ([]string, error) { expandGlobsLogger := modifyCommandLogger.WithPrefix("ExpandGLobs") expandGlobsLogger.Debug("Expanding glob patterns to actual files") expandGlobsLogger.Trace("Input patterns for expansion: %v", patterns)