mirror of https://github.com/ouqiang/gocron
27 lines
439 B
Go
27 lines
439 B
Go
// +build gocron
|
|
// 调度中心
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
"os"
|
|
|
|
"github.com/ouqiang/gocron/cmd"
|
|
)
|
|
|
|
const AppVersion = "1.0"
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "gocron"
|
|
app.Usage = "gocron service"
|
|
app.Version = AppVersion
|
|
app.Commands = []cli.Command{
|
|
cmd.CmdWeb,
|
|
cmd.CmdServ,
|
|
}
|
|
app.Flags = append(app.Flags, []cli.Flag{}...)
|
|
app.Run(os.Args)
|
|
}
|