入口文件重命名
parent
3a3ae7e024
commit
291ea91144
28
scheduler.go
28
scheduler.go
|
@ -1,28 +0,0 @@
|
||||||
package main
|
|
||||||
|
|
||||||
/*--------------------------------------------------------
|
|
||||||
定时任务调度
|
|
||||||
兼容Linux crontab时间格式语法,最小粒度可精确到每秒
|
|
||||||
支持通过HTTP、SSH协议触发任务执行
|
|
||||||
--------------------------------------------------------*/
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/urfave/cli"
|
|
||||||
"os"
|
|
||||||
|
|
||||||
"scheduler/cmd"
|
|
||||||
)
|
|
||||||
|
|
||||||
const AppVersion = "0.0.1"
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
app := cli.NewApp()
|
|
||||||
app.Name = "scheduler"
|
|
||||||
app.Usage = "schedule cron service"
|
|
||||||
app.Version = AppVersion
|
|
||||||
app.Commands = []cli.Command{
|
|
||||||
cmd.CmdWeb,
|
|
||||||
}
|
|
||||||
app.Flags = append(app.Flags, []cli.Flag{}...)
|
|
||||||
app.Run(os.Args)
|
|
||||||
}
|
|
Loading…
Reference in New Issue