mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-13 06:23:18 +00:00
fix: Update import and usage of Config type in cmd/root.go
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user