gitote.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.18"
  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. }
  32. func main() {
  33. app := cli.NewApp()
  34. app.Name = "Gitote"
  35. app.Usage = "Software version control made simple"
  36. app.Version = AppVer
  37. app.Commands = []cli.Command{
  38. cmd.Web,
  39. cmd.Serv,
  40. cmd.Hook,
  41. cmd.Cert,
  42. cmd.Admin,
  43. cmd.Import,
  44. }
  45. app.Run(os.Args)
  46. }