octopush/cmd/server/commands/root.go

17 lines
248 B
Go
Raw Normal View History

2022-09-10 00:09:09 +02:00
package commands
import (
"github.com/spf13/cobra"
"go.uber.org/zap"
)
func CreateServerCmd(logger *zap.Logger) *cobra.Command {
cmd := &cobra.Command{
2022-09-21 11:06:53 +02:00
Use: "octopushserver",
2022-09-10 00:09:09 +02:00
}
cmd.AddCommand(NewStartServerCommand(logger))
return cmd
}