mirror of https://github.com/tidwall/tile38.git
Merge pull request #229 from rshura/compound_commands
Support script_load and script_flush as separate tokens too.
This commit is contained in:
commit
a3d1c08c63
|
@ -705,7 +705,8 @@ func (c *Controller) command(
|
||||||
res, err = c.cmdConfigSet(msg)
|
res, err = c.cmdConfigSet(msg)
|
||||||
case "config rewrite":
|
case "config rewrite":
|
||||||
res, err = c.cmdConfigRewrite(msg)
|
res, err = c.cmdConfigRewrite(msg)
|
||||||
case "config":
|
case "config", "script":
|
||||||
|
// These get rewritten into "config foo" and "script bar"
|
||||||
err = fmt.Errorf("unknown command '%s'", msg.Values[0])
|
err = fmt.Errorf("unknown command '%s'", msg.Values[0])
|
||||||
if len(msg.Values) > 1 {
|
if len(msg.Values) > 1 {
|
||||||
command := msg.Values[0].String() + " " + msg.Values[1].String()
|
command := msg.Values[0].String() + " " + msg.Values[1].String()
|
||||||
|
|
Loading…
Reference in New Issue