优化掉落系统
This commit is contained in:
1 parent
e9cacf064a
commit
c352746496
30 files changed
+350
-204
No files matched your search
+3
-3
@@ -9,14 +9,14 @@ import (
|
||||
)
|
||||
|
||||
func NodeCmd() *cobra.Command {
|
||||
var cfg string
|
||||
var configFile string
|
||||
c := &cobra.Command{
|
||||
Use: "node",
|
||||
Short: "node server",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return app.Run(context.Background(), cfg)
|
||||
return app.Run(context.Background(), configFile)
|
||||
},
|
||||
}
|
||||
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
|
||||
c.Flags().StringVar(&configFile, "config", "application.toml", "config file")
|
||||
return c
|
||||
}
|
||||
Reference in new issue
Block a user