octopush/cmd/server/commands/start.go
2022-09-10 20:20:49 +02:00

20 lines
380 B
Go

package commands
import (
"git.front.kjuulh.io/kjuulh/kraken/internal/server"
"github.com/spf13/cobra"
"go.uber.org/zap"
)
func NewStartServerCommand(logger *zap.Logger) *cobra.Command {
cmd := &cobra.Command{
Use: "start",
Short: "Start the kraken server",
RunE: func(cmd *cobra.Command, args []string) error {
return server.Start(logger)
},
}
return cmd
}