added parse command

This commit is contained in:
Radu Ioan Fericean
2014-07-17 14:11:13 +03:00
parent 62d1a31290
commit 362f34fe21
4 changed files with 97 additions and 12 deletions

View File

@@ -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)