with aero

This commit is contained in:
2022-09-10 20:20:49 +02:00
parent 5b0d4626b6
commit c42d3761a4
6 changed files with 248 additions and 12 deletions

View File

@@ -1,19 +1,17 @@
package commands
import (
"errors"
"git.front.kjuulh.io/kjuulh/kraken/internal/server"
"github.com/spf13/cobra"
"go.uber.org/zap"
)
func NewStartServerCommand(_ *zap.Logger) *cobra.Command {
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 errors.New("some error")
return server.Start(logger)
},
}