mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 15:03:17 +00:00
Compare commits
6 Commits
feat/click
...
improve-co
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20b6218c7f | ||
|
|
8a16cec600 | ||
|
|
7676638fa4 | ||
|
|
ad5147551a | ||
|
|
6870258944 | ||
|
|
da92da21dc |
@@ -26,14 +26,6 @@ var filesCmd = &cobra.Command{
|
|||||||
Long: `The files subcommand writes the contents of all files (with target custom file types provided)
|
Long: `The files subcommand 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.`,
|
||||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
|
||||||
var err error
|
|
||||||
cfg, err = config.Load("rollup.yml") // Assuming the config file is named rollup.yml
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("failed to load configuration: %v", err)
|
|
||||||
}
|
|
||||||
return nil
|
|
||||||
},
|
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
return runRollup(cfg)
|
return runRollup(cfg)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user