Allow using Eval to run Lime tools.
This commit is contained in:
@@ -199,6 +199,23 @@ class RunScript
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.indexOf("-eval") >= 0)
|
||||||
|
{
|
||||||
|
args.remove("-eval");
|
||||||
|
Log.info("Experimental: executing `lime " + args.slice(0, args.length - 1).join(" ")
|
||||||
|
+ "` using Eval (https://haxe.org/blog/eval/)");
|
||||||
|
|
||||||
|
var args = [
|
||||||
|
"-D", "lime",
|
||||||
|
"-cp", "tools",
|
||||||
|
"-cp", "tools/platforms",
|
||||||
|
"-cp", "src",
|
||||||
|
"-lib", "format",
|
||||||
|
"-lib", "hxp",
|
||||||
|
"--run", "CommandLineTools"].concat(args);
|
||||||
|
Sys.exit(runCommand("", "haxe", args));
|
||||||
|
}
|
||||||
|
|
||||||
if (!FileSystem.exists("tools/tools.n") || args.indexOf("-rebuild") > -1)
|
if (!FileSystem.exists("tools/tools.n") || args.indexOf("-rebuild") > -1)
|
||||||
{
|
{
|
||||||
rebuildTools();
|
rebuildTools();
|
||||||
|
|||||||
Reference in New Issue
Block a user