From 197f3affc7a84b69dd14eeb341fe3ef3a97edf61 Mon Sep 17 00:00:00 2001 From: Arik Jones Date: Thu, 19 Sep 2024 10:43:23 -0500 Subject: [PATCH] fix: Don't use PersistentPreRunE. Caused the actuall runRollup function to never run. --- .tool-versions | 2 +- cmd/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.tool-versions b/.tool-versions index 1a59aeb..c9953ae 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -golang 1.23.0 +golang 1.23.1 diff --git a/cmd/root.go b/cmd/root.go index 0b2dd8f..506a1d4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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 -rollup-.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