2023-02-12 05:50:19 +00:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
// import (
|
|
|
|
// "git.andrewnw.xyz/CyberShell/backy/pkg/backy"
|
|
|
|
|
|
|
|
// "github.com/spf13/cobra"
|
|
|
|
// )
|
|
|
|
|
|
|
|
// var (
|
|
|
|
// configCmd = &cobra.Command{
|
|
|
|
// Use: "config list ...",
|
|
|
|
// Short: "Runs commands defined in config file.",
|
|
|
|
// Long: `Cron executes commands at the time defined in config file.`,
|
|
|
|
// Run: config,
|
|
|
|
// }
|
|
|
|
|
|
|
|
// cmds []string
|
|
|
|
// lists []string
|
|
|
|
// )
|
|
|
|
|
|
|
|
// func config(cmd *cobra.Command, args []string) {
|
|
|
|
|
2024-11-12 04:44:28 +00:00
|
|
|
// opts := backy.NewOpts(cfgFile, backy.cronEnabled())
|
2023-02-12 05:50:19 +00:00
|
|
|
// opts.InitConfig()
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// func init() {
|
|
|
|
|
|
|
|
// configCmd.PersistentFlags().StringArrayVarP(&cmds, "cmds", "c", nil, "Accepts comma-seperated list of commands to list")
|
|
|
|
// }
|