gogs/gogs.go

43 lines
759 B
Go
Raw Normal View History

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