mirror of https://github.com/ouqiang/gocron
tab替换为空格
parent
9c62f3034b
commit
702db588f2
24
main.go
24
main.go
|
@ -7,22 +7,22 @@ package main
|
||||||
--------------------------------------------------------*/
|
--------------------------------------------------------*/
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ouqiang/cron-scheduler/cmd"
|
"github.com/ouqiang/cron-scheduler/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
const AppVersion = "0.0.1"
|
const AppVersion = "0.0.1"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "cron-scheduler"
|
app.Name = "cron-scheduler"
|
||||||
app.Usage = "cron-scheduler service"
|
app.Usage = "cron-scheduler service"
|
||||||
app.Version = AppVersion
|
app.Version = AppVersion
|
||||||
app.Commands = []cli.Command{
|
app.Commands = []cli.Command{
|
||||||
cmd.CmdWeb,
|
cmd.CmdWeb,
|
||||||
}
|
}
|
||||||
app.Flags = append(app.Flags, []cli.Flag{}...)
|
app.Flags = append(app.Flags, []cli.Flag{}...)
|
||||||
app.Run(os.Args)
|
app.Run(os.Args)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue