kurzd.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Package kurzd contains the Kurz daemon command.
  2. package main
  3. //go:generate gotext -srclang=en update -out=catalog.go -lang=fr,en
  4. import (
  5. "fmt"
  6. "os"
  7. _ "golang.org/x/text/message"
  8. )
  9. /**
  10. kurzd
  11. -h Display top-level help
  12. -v Verbose (default: false).
  13. help <command> Display help (same as kurzd <command> -h)
  14. server Serve kurz (default option).
  15. -p|--port <port_id> Serve on this IP port (default: 80).
  16. -m|--monitoring <port_id> Serve monitoring on this IP port (default: none)
  17. install Install kurzd completely.
  18. config Install the configuration define by command line to ~.
  19. export Export kurzd data.
  20. config Export kurz configuration.
  21. content Export kurz content.
  22. migrate Goose migration commands
  23. <goose commands> See https://github.com/pressly/goose
  24. uninstall Uninstall kurzd completely.
  25. config Uninstall the curz configuration file from ~.
  26. schema Uninstall the curz database schema.
  27. status Report on kurzd status
  28. stop Stop all instances of kurzd on the current server (restricted)
  29. */
  30. func main() {
  31. if err := cmd.Execute(); err != nil {
  32. fmt.Println(err)
  33. os.Exit(1)
  34. }
  35. }