gitote.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // +build go1.7
  2. // Copyright 2015 The Gogs Authors. All rights reserved.
  3. // Copyright 2018 Gitote. All rights reserved.
  4. //
  5. // This source code is licensed under the MIT license found in the
  6. // LICENSE file in the root directory of this source tree.
  7. /*
  8. _____ _ _ _
  9. / ____(_) | | |
  10. | | __ _| |_ ___ | |_ ___
  11. | | |_ | | __/ _ \| __/ _ \
  12. | |__| | | || (_) | || __/
  13. \_____|_|\__\___/ \__\___|
  14. */
  15. package main
  16. import (
  17. "gitote/gitote/cmd"
  18. "gitote/gitote/pkg/setting"
  19. "os"
  20. raven "github.com/getsentry/raven-go"
  21. "github.com/urfave/cli"
  22. )
  23. // AppVer represents the version of Gitote
  24. const AppVer = "1.0.1-prod-rc.15"
  25. // APIVer represents the API version of Gitote
  26. const APIVer = "v1"
  27. func init() {
  28. raven.SetDSN("https://c711d9b100e74dfeb5fdee84a4d6c273:ff5ccef0870a48aea106d89b67a69710@sentry.io/1268720")
  29. setting.AppVer = AppVer
  30. setting.APIVer = APIVer
  31. setting.AppURL = "https://gitote.in"
  32. setting.UsercontentURL = "https://gitoteusercontent.gitote.in"
  33. }
  34. func main() {
  35. app := cli.NewApp()
  36. app.Name = "Gitote"
  37. app.Usage = "Software version control made simple"
  38. app.Version = AppVer
  39. app.Commands = []cli.Command{
  40. cmd.Web,
  41. cmd.Serv,
  42. cmd.Hook,
  43. cmd.Cert,
  44. cmd.Admin,
  45. cmd.Import,
  46. }
  47. app.Run(os.Args)
  48. }