From 056c3e368ec644241e436187b774e08e8d4a7e12 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Mon, 16 Sep 2024 09:53:44 -0500 Subject: [PATCH] fix: Update import and usage of Config type in cmd/root.go --- cmd/root.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 70bbda6..0b2dd8f 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -8,7 +8,7 @@ import ( "time" "github.com/spf13/cobra" - "github.com/tnypxl/rollup/internal/config" + config "github.com/tnypxl/rollup/internal/config" ) var ( @@ -51,8 +51,8 @@ whose name is -rollup-.md.`, }, } -func Execute(config *config.Config) error { - cfg = config +func Execute(conf *config.Config) error { + cfg = conf if cfg == nil { cfg = &config.Config{} // Use an empty config if none is provided }