mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
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.
42 lines
839 B
42 lines
839 B
9 years ago
|
// +build go1.4
|
||
11 years ago
|
|
||
11 years ago
|
// Copyright 2014 The Gogs Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a MIT-style
|
||
|
// license that can be found in the LICENSE file.
|
||
11 years ago
|
|
||
9 years ago
|
// Gogs (Go Git Service) is a painless self-hosted Git Service.
|
||
11 years ago
|
package main
|
||
|
|
||
|
import (
|
||
11 years ago
|
"os"
|
||
|
"runtime"
|
||
11 years ago
|
|
||
8 years ago
|
"github.com/go-gitea/gitea/cmd"
|
||
|
"github.com/go-gitea/gitea/modules/setting"
|
||
8 years ago
|
"github.com/urfave/cli"
|
||
11 years ago
|
)
|
||
|
|
||
8 years ago
|
const APP_VER = "0.9.99.0915"
|
||
11 years ago
|
|
||
11 years ago
|
func init() {
|
||
11 years ago
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||
11 years ago
|
setting.AppVer = APP_VER
|
||
11 years ago
|
}
|
||
|
|
||
11 years ago
|
func main() {
|
||
11 years ago
|
app := cli.NewApp()
|
||
11 years ago
|
app.Name = "Gogs"
|
||
8 years ago
|
app.Usage = "Go Git Service: a painless self-hosted Git service"
|
||
11 years ago
|
app.Version = APP_VER
|
||
|
app.Commands = []cli.Command{
|
||
11 years ago
|
cmd.CmdWeb,
|
||
|
cmd.CmdServ,
|
||
|
cmd.CmdUpdate,
|
||
11 years ago
|
cmd.CmdDump,
|
||
10 years ago
|
cmd.CmdCert,
|
||
8 years ago
|
cmd.CmdAdmin,
|
||
11 years ago
|
}
|
||
11 years ago
|
app.Flags = append(app.Flags, []cli.Flag{}...)
|
||
11 years ago
|
app.Run(os.Args)
|
||
11 years ago
|
}
|