kurz.go 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. Kurz URl shortener app
  3. kurz
  4. -v Verbose (default: false).
  5. help Display help (cobra builtin).
  6. server Serve kurz.
  7. -p|--port <port_id> Serve on this IP port (default: 80).
  8. install Install kurz completely.
  9. config Install the configuration define by command line to ~.
  10. schema Install the kurz database schema.
  11. export Export kurz data.
  12. -o <file> Specify a destination file.
  13. config Export kurz configuration.
  14. content Export kurz content.
  15. uninstall Uninstall kurz completely.
  16. config Uninstall the curz configuration file from ~.
  17. schema Uninstall the curz database schema.
  18. */
  19. package main
  20. import (
  21. // "fmt"
  22. "code.osinet.fr/fgm/kurz/command"
  23. // "code.osinet.fr/fgm/kurz/storage"
  24. // "code.osinet.fr/fgm/kurz/strategy"
  25. // "log"
  26. )
  27. func main() {
  28. command.Build()
  29. // err := storage.Service.Open()
  30. // if err != nil {
  31. // log.Fatal(err)
  32. // }
  33. // defer storage.Service.Close()
  34. //
  35. // fmt.Print(strategy.Statistics.Refresh(storage.Service))
  36. }