gitote.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // +build go1.8
  2. // Copyright 2015 - Present, The Gogs Authors. All rights reserved.
  3. // Copyright 2018 - Present, 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. // Gitote (Git + Rem(ote) = Gitote) - Software version control made simple.
  8. /*
  9. _____ _ _ _
  10. / ____(_) | | |
  11. | | __ _| |_ ___ | |_ ___
  12. | | |_ | | __/ _ \| __/ _ \
  13. | |__| | | || (_) | || __/
  14. \_____|_|\__\___/ \__\___|
  15. */
  16. package main // import "gitote/gitote"
  17. import (
  18. "gitote/gitote/cmd"
  19. "gitote/gitote/pkg/setting"
  20. "os"
  21. raven "github.com/getsentry/raven-go"
  22. "github.com/urfave/cli"
  23. )
  24. // AppVer holds the current Gitote version
  25. const AppVer = "1.1.9"
  26. // APIVer holds the current Gitote API version
  27. const APIVer = "v1"
  28. func init() {
  29. raven.SetDSN("https://c711d9b100e74dfeb5fdee84a4d6c273:ff5ccef0870a48aea106d89b67a69710@sentry.io/1268720")
  30. setting.AppVer = AppVer
  31. setting.APIVer = APIVer
  32. }
  33. func main() {
  34. app := cli.NewApp()
  35. app.Name = "Gitote"
  36. app.Usage = "Software version control made simple"
  37. app.Version = AppVer
  38. app.Commands = []cli.Command{
  39. cmd.Web,
  40. cmd.Serv,
  41. cmd.Hook,
  42. cmd.Cert,
  43. cmd.Admin,
  44. cmd.Import,
  45. }
  46. app.Run(os.Args)
  47. }