refactor: updated cmd command funcs

This commit is contained in:
David Allen 2025-08-14 07:41:09 -06:00
parent a1a9c6407f
commit 1413312893
Signed by: towk
GPG key ID: 793B2924A49B3A3F
6 changed files with 63 additions and 1 deletions

20
cmd/serve.go Normal file
View file

@ -0,0 +1,20 @@
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)
}