mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-04 14:22:26 +08:00
简化配置表读取
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
|
||||
"hk4e/fight/app"
|
||||
"hk4e/anticheat/app"
|
||||
"hk4e/pkg/statsviz_serve"
|
||||
)
|
||||
|
||||
@@ -3,16 +3,16 @@ package main
|
||||
import (
|
||||
"context"
|
||||
|
||||
"hk4e/fight/app"
|
||||
"hk4e/anticheat/app"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func FightCmd() *cobra.Command {
|
||||
func AnticheatCmd() *cobra.Command {
|
||||
var cfg string
|
||||
c := &cobra.Command{
|
||||
Use: "fight",
|
||||
Short: "fight server",
|
||||
Use: "anticheat",
|
||||
Short: "anticheat server",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return app.Run(context.Background(), cfg)
|
||||
},
|
||||
@@ -23,7 +23,7 @@ func main() {
|
||||
NodeCmd(),
|
||||
DispatchCmd(),
|
||||
GateCmd(),
|
||||
FightCmd(),
|
||||
AnticheatCmd(),
|
||||
PathfindingCmd(),
|
||||
GSCmd(),
|
||||
GMCmd(),
|
||||
|
||||
Reference in New Issue
Block a user