refacotr: move pkg/server to root

This commit is contained in:
lilong.129 2025-02-06 11:28:34 +08:00
parent 1f063dd6f7
commit a578e92e00
10 changed files with 2 additions and 2 deletions

View File

@ -3,14 +3,14 @@ package cmd
import (
"github.com/spf13/cobra"
"github.com/httprunner/httprunner/v5/pkg/server"
"github.com/httprunner/httprunner/v5/server"
)
// serverCmd represents the server command
var serverCmd = &cobra.Command{
Use: "server start",
Short: "start hrp server",
Long: `start hrp server. exec automation by http`,
Long: `start hrp server, call httprunner by HTTP`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return server.NewServer(port)