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.

gogs.go 844B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2014 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. // Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language.
  5. package main
  6. import (
  7. "os"
  8. "runtime"
  9. "github.com/codegangsta/cli"
  10. "github.com/gogits/gogs/modules/base"
  11. )
  12. // +build go1.2
  13. // Test that go1.2 tag above is included in builds. main.go refers to this definition.
  14. const go12tag = true
  15. const APP_VER = "0.2.0.0329 Alpha"
  16. func init() {
  17. base.AppVer = APP_VER
  18. runtime.GOMAXPROCS(runtime.NumCPU())
  19. }
  20. func main() {
  21. app := cli.NewApp()
  22. app.Name = "Gogs"
  23. app.Usage = "Go Git Service"
  24. app.Version = APP_VER
  25. app.Commands = []cli.Command{
  26. CmdWeb,
  27. CmdServ,
  28. CmdUpdate,
  29. }
  30. app.Flags = append(app.Flags, []cli.Flag{}...)
  31. app.Run(os.Args)
  32. }