add working command hooks
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed

This commit is contained in:
2024-11-11 22:44:28 -06:00
parent feacb83274
commit b8a63f39f5
6 changed files with 189 additions and 58 deletions

View File

@ -20,7 +20,7 @@ package cmd
// func config(cmd *cobra.Command, args []string) {
// opts := backy.NewOpts(cfgFile, backy.UseCron())
// opts := backy.NewOpts(cfgFile, backy.cronEnabled())
// opts.InitConfig()
// }

View File

@ -17,7 +17,7 @@ var (
func cron(cmd *cobra.Command, args []string) {
opts := backy.NewOpts(cfgFile, backy.UseCron())
opts := backy.NewOpts(cfgFile, backy.CronEnabled())
opts.InitConfig()
backy.ReadConfig(opts)
opts.Cron()