|
|
@ -16,18 +16,19 @@ import ( |
|
|
|
"github.com/urfave/cli" |
|
|
|
"github.com/urfave/cli" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
const APP_VER = "0.9.99.0915" |
|
|
|
// Version holds the current Gitea version
|
|
|
|
|
|
|
|
const Version = "0.9.99.0915" |
|
|
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
func init() { |
|
|
|
runtime.GOMAXPROCS(runtime.NumCPU()) |
|
|
|
runtime.GOMAXPROCS(runtime.NumCPU()) |
|
|
|
setting.AppVer = APP_VER |
|
|
|
setting.AppVer = Version |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
func main() { |
|
|
|
app := cli.NewApp() |
|
|
|
app := cli.NewApp() |
|
|
|
app.Name = "Gogs" |
|
|
|
app.Name = "Gogs" |
|
|
|
app.Usage = "Go Git Service: a painless self-hosted Git service" |
|
|
|
app.Usage = "Go Git Service: a painless self-hosted Git service" |
|
|
|
app.Version = APP_VER |
|
|
|
app.Version = Version |
|
|
|
app.Commands = []cli.Command{ |
|
|
|
app.Commands = []cli.Command{ |
|
|
|
cmd.CmdWeb, |
|
|
|
cmd.CmdWeb, |
|
|
|
cmd.CmdServ, |
|
|
|
cmd.CmdServ, |
|
|
|