gitote.go 789 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "github.com/urfave/cli"
  16. )
  17. // AppVer represents the version of Gitote
  18. const AppVer = "1.0.0-prod-rc.7"
  19. // APIVer represents the API version of Gitote
  20. const APIVer = "v1"
  21. func init() {
  22. setting.AppVer = AppVer
  23. setting.APIVer = APIVer
  24. }
  25. func main() {
  26. app := cli.NewApp()
  27. app.Name = "Gitote"
  28. app.Usage = "Software version control made simple"
  29. app.Version = AppVer
  30. app.APIVersion = APIVer
  31. app.Commands = []cli.Command{
  32. cmd.Web,
  33. cmd.Serv,
  34. cmd.Hook,
  35. cmd.Cert,
  36. cmd.Admin,
  37. cmd.Import,
  38. }
  39. app.Run(os.Args)
  40. }