gitote.go 913 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // +build go1.7
  2. /*
  3. _____ _ _ _
  4. / ____(_) | | |
  5. | | __ _| |_ ___ | |_ ___
  6. | | |_ | | __/ _ \| __/ _ \
  7. | |__| | | || (_) | || __/
  8. \_____|_|\__\___/ \__\___|
  9. */
  10. package main
  11. import (
  12. "gitote/gitote/cmd"
  13. "gitote/gitote/pkg/setting"
  14. "os"
  15. raven "github.com/getsentry/raven-go"
  16. "github.com/urfave/cli"
  17. )
  18. // AppVer represents the version of Gitote
  19. const AppVer = "1.0.1-prod-rc.10"
  20. // APIVer represents the API version of Gitote
  21. const APIVer = "v1"
  22. func init() {
  23. raven.SetDSN("https://c711d9b100e74dfeb5fdee84a4d6c273:ff5ccef0870a48aea106d89b67a69710@sentry.io/1268720")
  24. setting.AppVer = AppVer
  25. setting.APIVer = APIVer
  26. }
  27. func main() {
  28. app := cli.NewApp()
  29. app.Name = "Gitote"
  30. app.Usage = "Software version control made simple"
  31. app.Version = AppVer
  32. app.Commands = []cli.Command{
  33. cmd.Web,
  34. cmd.Serv,
  35. cmd.Hook,
  36. cmd.Cert,
  37. cmd.Admin,
  38. cmd.Import,
  39. }
  40. app.Run(os.Args)
  41. }