1234567891011121314151617181920212223242526 |
- package main
- import (
- _ "beego/routers"
- "github.com/urfave/cli"
- "os"
- )
- const APP_VER = "0.1.0.0"
- func init() {
- setting.AppVer = APP_VER
- }
- func main() {
- app := cli.NewApp()
- app.Name = "test1-go"
- app.Usage = "描述x.x"
- app.Version = APP_VER
- app.Commands = []cli.Command{
- cmd.Web,
- cmd.BackUp,
- }
- app.Flags = append(app.Flags, []cli.Flag{}...)
- app.Run(os.Args)
- }
|