refactor: move shoots related server to ext

This commit is contained in:
lilong.129
2025-02-10 19:57:39 +08:00
parent 1ec383180b
commit c6b0aefc56
12 changed files with 305 additions and 156 deletions

View File

@@ -13,7 +13,7 @@ var serverCmd = &cobra.Command{
Long: `start hrp server, call httprunner by HTTP`,
Args: cobra.MinimumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
return server.NewServer(port)
return server.NewRouter().Run(port)
},
}