合并杂项功能服务器节点到multi服务器节点
This commit is contained in:
1 parent
64699c23d7
commit
6cca998915
42 files changed
+344
-647
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"hk4e/multi/app"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func MultiCmd() *cobra.Command {
|
||||
var cfg string
|
||||
app.APPVERSION = VERSION
|
||||
c := &cobra.Command{
|
||||
Use: "multi",
|
||||
Short: "multi server",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return app.Run(context.Background(), cfg)
|
||||
},
|
||||
}
|
||||
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
|
||||
return c
|
||||
}
|
||||
Reference in new issue
Block a user