mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +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"
|
"time"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/tnypxl/rollup/internal/config"
|
config "github.com/tnypxl/rollup/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -51,8 +51,8 @@ whose name is <project-directory-name>-rollup-<timestamp>.md.`,
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
func Execute(config *config.Config) error {
|
func Execute(conf *config.Config) error {
|
||||||
cfg = config
|
cfg = conf
|
||||||
if cfg == nil {
|
if cfg == nil {
|
||||||
cfg = &config.Config{} // Use an empty config if none is provided
|
cfg = &config.Config{} // Use an empty config if none is provided
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user