kurzd.go 1.2 KB

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