入口文件

pull/21/merge
ouqiang 2017-03-10 11:14:22 +08:00
parent b39e6596b0
commit 24aa56b5d0
1 changed files with 28 additions and 0 deletions

28
scheduler.go Normal file
View File

@ -0,0 +1,28 @@
package main
/*--------------------------------------------------------
| |
| Linux crontab |
| HTTPSSH |
--------------------------------------------------------*/
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)
}