Add command dump and move to cmd did

This commit is contained in:
Unknown 2014-05-01 21:21:46 -04:00
parent cd2020429a
commit 3bd5fc6d6f
7 changed files with 68 additions and 15 deletions

10
gogs.go
View file

@ -13,6 +13,7 @@ import (
"github.com/codegangsta/cli"
"github.com/gogits/gogs/cmd"
"github.com/gogits/gogs/modules/base"
)
@ -32,10 +33,11 @@ func main() {
app.Usage = "Go Git Service"
app.Version = APP_VER
app.Commands = []cli.Command{
CmdWeb,
CmdServ,
CmdUpdate,
// CmdFix,
cmd.CmdWeb,
// cmd.CmdFix,
cmd.CmdDump,
cmd.CmdServ,
cmd.CmdUpdate,
}
app.Flags = append(app.Flags, []cli.Flag{}...)
app.Run(os.Args)