mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-11 15:31:37 +08:00
feat: hrp mcphost
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
// serverCmd represents the server command
|
||||
var CmdServer = &cobra.Command{
|
||||
Use: "server start",
|
||||
Short: "start hrp server",
|
||||
Long: `start hrp server, call httprunner by HTTP`,
|
||||
Short: "Start hrp server",
|
||||
Long: `Start hrp server, call httprunner by HTTP`,
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
router := server.NewRouter()
|
||||
@@ -23,10 +23,7 @@ var CmdServer = &cobra.Command{
|
||||
},
|
||||
}
|
||||
|
||||
var (
|
||||
port int
|
||||
mcpConfigPath string
|
||||
)
|
||||
var port int
|
||||
|
||||
func init() {
|
||||
CmdServer.Flags().IntVarP(&port, "port", "p", 8082, "port to run the server on")
|
||||
|
||||
Reference in New Issue
Block a user