rootCmd.go 512 B

1234567891011121314151617181920212223242526272829303132
  1. package main
  2. import (
  3. "fmt"
  4. "os"
  5. "github.com/spf13/cobra"
  6. )
  7. var cmd = &cobra.Command{
  8. Use: "kurzd",
  9. Short: "kurzd is the Kurz daemon and back-office command",
  10. Long: "kurzd is the actual engine for Kurz. Use it as the server for your Kurz clients",
  11. Run: func(cmd *cobra.Command, args []string) {
  12. panic("Not yet implemented")
  13. },
  14. }
  15. func initConfig() {
  16. }
  17. func init() {
  18. cobra.OnInitialize(initConfig)
  19. }
  20. func Execute() {
  21. if err := cmd.Execute(); err != nil {
  22. fmt.Println(err)
  23. os.Exit(1)
  24. }
  25. }