mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
simpler console command interface
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -541,7 +541,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
}
|
||||
engine.SetUserService(users)
|
||||
engine.SetUserService(userServer)
|
||||
}()
|
||||
wg.Wait()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user