mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
added parse command
This commit is contained in:
@@ -65,6 +65,11 @@ func (ce *CommandExecuter) ClientArgs() (args []string) {
|
||||
return
|
||||
}
|
||||
|
||||
// To be overwritten by commands that do not need a rpc call
|
||||
func (ce *CommandExecuter) LocalExecute() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func ToJSON(line string) (jsn []byte) {
|
||||
if !strings.Contains(line, "=") {
|
||||
line = fmt.Sprintf("Item=\"%s\"", line)
|
||||
|
||||
Reference in New Issue
Block a user