gocron/scheduler.go

29 lines
607 B
Go
Raw Normal View History

2017-03-10 03:14:22 +00:00
package main
/*--------------------------------------------------------
2017-03-14 06:31:46 +00:00
Linux crontab
HTTPSSH
2017-03-10 03:14:22 +00:00
--------------------------------------------------------*/
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)
}