crystal.cmd.run

Executes a previously registered command.

Usage

crystal.cmd.run(command)

Arguments

Name Type Description
command string Console command to run, including its arguments.

Examples

crystal.cmd.add("Add a:number b:number", function(a, b)
  print(a + b);
end);

crystal.cmd.run("Add 6 3"); -- prints 9

This site uses Just the Docs, a documentation theme for Jekyll.