refacotr: move pkg/server to root
This commit is contained in:
parent
1f063dd6f7
commit
a578e92e00
|
@ -3,14 +3,14 @@ package cmd
|
||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/httprunner/httprunner/v5/pkg/server"
|
"github.com/httprunner/httprunner/v5/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
// serverCmd represents the server command
|
// serverCmd represents the server command
|
||||||
var serverCmd = &cobra.Command{
|
var serverCmd = &cobra.Command{
|
||||||
Use: "server start",
|
Use: "server start",
|
||||||
Short: "start hrp server",
|
Short: "start hrp server",
|
||||||
Long: `start hrp server. exec automation by http`,
|
Long: `start hrp server, call httprunner by HTTP`,
|
||||||
Args: cobra.MinimumNArgs(1),
|
Args: cobra.MinimumNArgs(1),
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
return server.NewServer(port)
|
return server.NewServer(port)
|
||||||
|
|
Loading…
Reference in New Issue