|
|
@ -632,6 +632,9 @@ func handleInput(viewName string) error { |
|
|
|
} |
|
|
|
} |
|
|
|
if strings.HasPrefix(inputString, cmdPrefix) { |
|
|
|
if strings.HasPrefix(inputString, cmdPrefix) { |
|
|
|
cmd := delete_empty(strings.Split(inputString[len(cmdPrefix):], " ")) |
|
|
|
cmd := delete_empty(strings.Split(inputString[len(cmdPrefix):], " ")) |
|
|
|
|
|
|
|
if len(cmd) < 1 { |
|
|
|
|
|
|
|
return nil |
|
|
|
|
|
|
|
} |
|
|
|
if c, ok := commands[cmd[0]]; ok { |
|
|
|
if c, ok := commands[cmd[0]]; ok { |
|
|
|
c.Exec(cmd) |
|
|
|
c.Exec(cmd) |
|
|
|
return nil |
|
|
|
return nil |
|
|
|