mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 18:35:35 +08:00
Move all interactive input to construct
This commit is contained in:
@@ -34,9 +34,9 @@ class ZigCheck
|
||||
#[FixItem('install-zig')]
|
||||
public function installZig(): bool
|
||||
{
|
||||
$installer = new PackageInstaller();
|
||||
$installer = new PackageInstaller(interactive: false);
|
||||
$installer->addInstallPackage('zig');
|
||||
$installer->run(false);
|
||||
$installer->run(true);
|
||||
return $installer->isPackageInstalled('zig');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user