Add isRun and isInstall

This commit is contained in:
MAJigsaw77
2026-06-21 12:49:30 +08:00
committed by Hundrec
parent 801074735e
commit aa2d6db7e0
+11 -1
View File
@@ -549,7 +549,7 @@ class Project extends HXProject
displayTarget();
if (this.command == "run" || this.command == "install")
if (isRun() || isInstall())
{
// These commands dont really need much in order to run so to improve the speed, we return here.
return;
@@ -1808,6 +1808,16 @@ class Project extends HXProject
return this.targetFlags.exists("clean");
}
public function isRun():Bool
{
return this.command == "run";
}
public function isInstall():Bool
{
return this.command == "install";
}
public function isBuild():Bool
{
return this.command == "test" || this.command == "build";