Files
Gogs/gogs.go

42 lines
708 B
Go
Raw Normal View History

2018-12-19 08:38:10 -05:00
// +build go1.8
2014-04-13 03:14:43 -04:00
2014-02-19 13:04:31 -05:00
// 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.
2014-02-19 17:50:53 +08:00
2017-02-15 22:29:31 -05:00
// Gogs is a painless self-hosted Git Service.
2014-02-12 12:49:46 -05:00
package main
import (
2014-02-19 17:50:53 +08:00
"os"
2014-02-12 12:49:46 -05:00
2016-08-30 13:57:58 +02:00
"github.com/urfave/cli"
2014-03-10 20:53:30 -04:00
2018-05-27 08:53:48 +08:00
"github.com/gogs/gogs/cmd"
"github.com/gogs/gogs/pkg/setting"
2014-02-12 12:49:46 -05:00
)
2019-02-20 17:56:43 -05:00
const APP_VER = "0.11.88.0220"
2014-02-12 12:49:46 -05:00
2014-02-12 14:54:09 -05:00
func init() {
setting.AppVer = APP_VER
2014-02-12 14:54:09 -05:00
}
2014-02-12 12:49:46 -05:00
func main() {
2014-02-19 17:50:53 +08:00
app := cli.NewApp()
2014-02-19 13:04:31 -05:00
app.Name = "Gogs"
2017-02-15 22:29:31 -05:00
app.Usage = "A painless self-hosted Git service"
2014-02-19 17:50:53 +08:00
app.Version = APP_VER
app.Commands = []cli.Command{
2017-02-23 19:59:39 -05:00
cmd.Web,
cmd.Serv,
2017-02-23 19:59:39 -05:00
cmd.Hook,
cmd.Cert,
cmd.Admin,
cmd.Import,
cmd.Backup,
cmd.Restore,
2014-02-19 17:50:53 +08:00
}
app.Run(os.Args)
2014-02-12 12:49:46 -05:00
}