fix: Don't use PersistentPreRunE. Caused the actuall runRollup function to never run.

This commit is contained in:
Arik Jones
2024-09-19 10:43:23 -05:00
parent 7f468a05bd
commit 197f3affc7
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
golang 1.23.0
golang 1.23.1

View File

@@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{
Long: `Rollup is a tool that writes the contents of all files (with target custom file types provided)
in a given project, current path or a custom path, to a single timestamped markdown file
whose name is <project-directory-name>-rollup-<timestamp>.md.`,
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, args []string) error {
// Skip config loading and rollup execution for help command
if cmd.Name() == "help" {
return nil