gocron/gocron.go

29 lines
656 B
Go
Raw Normal View History

2017-03-23 05:58:42 +00:00
package main
/*--------------------------------------------------------
2017-04-02 02:38:49 +00:00
2017-03-23 05:58:42 +00:00
Linux crontab
2017-04-03 02:20:08 +00:00
HTTPSSH
2017-03-23 05:58:42 +00:00
--------------------------------------------------------*/
import (
2017-04-02 02:34:47 +00:00
"github.com/urfave/cli"
"os"
2017-03-23 05:58:42 +00:00
2017-04-07 01:22:00 +00:00
"github.com/ouqiang/gocron/cmd"
2017-03-23 05:58:42 +00:00
)
const AppVersion = "0.0.1"
func main() {
2017-04-02 02:34:47 +00:00
app := cli.NewApp()
2017-04-07 01:22:00 +00:00
app.Name = "gocron"
app.Usage = "gocron service"
2017-04-02 02:34:47 +00:00
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
}