mirror of https://github.com/tidwall/tile38.git
Support script_load and script_flush as separate tokens too.
This commit is contained in:
parent
d0a510d9ff
commit
f572b14a2e
|
@ -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