2017-05-26 10:09:07 +00:00
|
|
|
// +build gocron
|
|
|
|
// 调度中心
|
2017-03-23 05:58:42 +00:00
|
|
|
|
2017-05-26 10:09:07 +00:00
|
|
|
package main
|
2017-03-23 05:58:42 +00:00
|
|
|
|
|
|
|
import (
|
2017-09-16 09:58:33 +00:00
|
|
|
"github.com/urfave/cli"
|
|
|
|
"os"
|
2017-03-23 05:58:42 +00:00
|
|
|
|
2017-09-16 09:58:33 +00:00
|
|
|
"github.com/ouqiang/gocron/cmd"
|
2017-03-23 05:58:42 +00:00
|
|
|
)
|
|
|
|
|
2017-10-01 13:49:46 +00:00
|
|
|
const AppVersion = "1.3"
|
2017-03-23 05:58:42 +00:00
|
|
|
|
|
|
|
func main() {
|
2017-09-16 09:58:33 +00:00
|
|
|
app := cli.NewApp()
|
|
|
|
app.Name = "gocron"
|
|
|
|
app.Usage = "gocron service"
|
|
|
|
app.Version = AppVersion
|
|
|
|
app.Commands = []cli.Command{
|
|
|
|
cmd.CmdWeb,
|
|
|
|
}
|
|
|
|
app.Flags = append(app.Flags, []cli.Flag{}...)
|
|
|
|
app.Run(os.Args)
|
2017-03-23 05:58:42 +00:00
|
|
|
}
|