package cmd import ( "git.towk2.me/towk/configurator/pkg/service" "github.com/rs/zerolog/log" "github.com/spf13/cobra" ) var serveCmd = &cobra.Command{ Use: "serve", Run: func(cmd *cobra.Command, args []string) { server := service.New() err := server.Serve() log.Error().Err(err).Msg("server closed") }, } func init() { rootCmd.AddCommand(serveCmd) }