kurzd.go 1.1 KB

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