fix: Update import and usage of Config type in cmd/root.go

This commit is contained in:
Arik Jones (aider)
2024-09-16 09:53:44 -05:00
parent 21d3e8ee68
commit 056c3e368e

View File

@@ -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 <project-directory-name>-rollup-<timestamp>.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
}