mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
fix: Handle missing configuration file for help command
This commit is contained in:
@@ -53,6 +53,9 @@ whose name is <project-directory-name>-rollup-<timestamp>.md.`,
|
||||
|
||||
func Execute(config *config.Config) error {
|
||||
cfg = config
|
||||
if cfg == nil {
|
||||
cfg = &config.Config{} // Use an empty config if none is provided
|
||||
}
|
||||
return rootCmd.Execute()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user