/* Copyright © 2024 NAME HERE */ package cmd import ( "fmt" "gitee.com/xuyiping_admin/pkg/cmd" "github.com/spf13/cobra" ) // CrontabCmd represents the crontab command var CrontabCmd = &cobra.Command{ Use: "crontab", Short: "计划任务", Run: func(cmd *cobra.Command, args []string) { fmt.Println("crontab called") }, } func init() { // 每日同步脚本 cmd.Instant(JobCmd, "db:migrate", taskDBMigrate, "数据库迁移-执行完立刻退出") }