You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gocron/main.go

29 lines
637 B

package main
/*--------------------------------------------------------
Linux crontab
HTTPSSH
--------------------------------------------------------*/
import (
"github.com/urfave/cli"
"os"
"github.com/ouqiang/cron-scheduler/cmd"
)
const AppVersion = "0.0.1"
func main() {
app := cli.NewApp()
app.Name = "cron-scheduler"
app.Usage = "cron-scheduler service"
app.Version = AppVersion
app.Commands = []cli.Command{
cmd.CmdWeb,
}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)
}