gitote.go 937 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.0-prod-rc.7"
  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.APIVersion = APIVer
  33. app.Commands = []cli.Command{
  34. cmd.Web,
  35. cmd.Serv,
  36. cmd.Hook,
  37. cmd.Cert,
  38. cmd.Admin,
  39. cmd.Import,
  40. }
  41. app.Run(os.Args)
  42. }