simpler console command interface

This commit is contained in:
Radu Ioan Fericean
2015-07-14 21:23:21 +03:00
parent 0f7cc579f3
commit e95b2be88d
49 changed files with 131 additions and 230 deletions

View File

@@ -77,9 +77,11 @@ func executeCommand(command string) {
}
if cmd.RpcMethod() != "" {
res := cmd.RpcResult()
param := cmd.RpcParams(true, false)
param := cmd.RpcParams(false)
//log.Print(reflect.TypeOf(param))
switch param.(type) {
case *console.EmptyWrapper:
param = ""
case *console.StringWrapper:
param = param.(*console.StringWrapper).Item
case *console.StringSliceWrapper:

View File

@@ -541,7 +541,7 @@ func main() {
return
}
}
engine.SetUserService(users)
engine.SetUserService(userServer)
}()
wg.Wait()