changed PackageOperation to enums

This commit is contained in:
2025-02-28 17:39:08 -06:00
parent 6db5f73bc0
commit 8900bd70a4
8 changed files with 94 additions and 70 deletions

View File

@ -18,7 +18,11 @@ var (
func cron(cmd *cobra.Command, args []string) {
parseS3Config()
opts := backy.NewOpts(cfgFile, backy.EnableCron(), backy.SetLogFile(logFile), backy.SetCmdStdOut(cmdStdOut))
opts := backy.NewOpts(cfgFile,
backy.EnableCron(),
backy.SetLogFile(logFile),
backy.SetCmdStdOut(cmdStdOut))
opts.InitConfig()
opts.ReadConfig()