fix: Handle missing configuration file for help command

This commit is contained in:
Arik Jones (aider)
2024-09-16 09:52:48 -05:00
parent efee186ae0
commit 21d3e8ee68
2 changed files with 22 additions and 11 deletions

View File

@@ -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()
}