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.

39 lines
778 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  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 Go clone of Github.
  5. package main
  6. import (
  7. "os"
  8. "runtime"
  9. "github.com/codegangsta/cli"
  10. )
  11. // +build go1.1
  12. // Test that go1.1 tag above is included in builds. main.go refers to this definition.
  13. const go11tag = true
  14. const APP_VER = "0.0.0.0220"
  15. func init() {
  16. runtime.GOMAXPROCS(runtime.NumCPU())
  17. }
  18. func main() {
  19. app := cli.NewApp()
  20. app.Name = "Gogs"
  21. app.Usage = "Go Git Service"
  22. app.Version = APP_VER
  23. app.Commands = []cli.Command{
  24. CmdWeb,
  25. CmdServ,
  26. }
  27. app.Flags = append(app.Flags, []cli.Flag{
  28. cli.BoolFlag{"noterm", "disable color output"},
  29. }...)
  30. app.Run(os.Args)
  31. }