Move all interactive input to construct

This commit is contained in:
crazywhalecc
2026-03-09 11:04:18 +08:00
parent 1f768ffc64
commit 77e129881a
11 changed files with 96 additions and 61 deletions

View File

@@ -30,9 +30,9 @@ class Re2cVersionCheck
#[FixItem('build-re2c')]
public function buildRe2c(): bool
{
$installer = new PackageInstaller();
$installer = new PackageInstaller(interactive: false);
$installer->addInstallPackage('re2c');
$installer->run(false);
$installer->run(true);
return true;
}
}