test gitxt
Created on:
/git.txt.go 596 B (text/x-c)
123456789101112131415161718192021222324252627282930
  1. package main
  2. import (
  3. "os"
  4. "github.com/urfave/cli"
  5. "dev.sigpipe.me/dashie/git.txt/cmd"
  6. "dev.sigpipe.me/dashie/git.txt/setting"
  7. "github.com/getsentry/raven-go"
  8. )
  9. const APP_VER = "0.1"
  10. func init() {
  11. setting.AppVer = APP_VER
  12. if os.Getenv("USE_RAVEN") == "true" {
  13. raven.SetDSN(os.Getenv("RAVEN_DSN"))
  14. }
  15. }
  16. func main() {
  17. app := cli.NewApp()
  18. app.Name = "git.txt"
  19. app.Usage = "paste stuff to the interweb with git backend"
  20. app.Version = APP_VER
  21. app.Commands = []cli.Command{
  22. cmd.Web,
  23. }
  24. app.Flags = append(app.Flags, []cli.Flag{}...)
  25. app.Run(os.Args)
  26. }
© 2017-2018 git.txt - version: 0.5.2 - b28934a7ddecd31f2e40cb7058fa1fb5e9a1acc8 - page: 127ms - template: 29ms
Gitxts: 43, managed: 90
Sources - Go1.11.5