mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 06:53:18 +00:00
fix: Don't use PersistentPreRunE. Caused the actuall runRollup function to never run.
This commit is contained in:
@@ -1 +1 @@
|
|||||||
golang 1.23.0
|
golang 1.23.1
|
||||||
|
|||||||
@@ -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)
|
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
|
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.`,
|
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
|
// Skip config loading and rollup execution for help command
|
||||||
if cmd.Name() == "help" {
|
if cmd.Name() == "help" {
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user