mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 15:25:41 +08:00
Fix interactive install-pkg command
This commit is contained in:
@@ -34,7 +34,7 @@ class InstallPackageCommand extends BaseCommand
|
||||
public function handle(): int
|
||||
{
|
||||
ApplicationContext::set('elephant', true);
|
||||
$installer = new PackageInstaller([...$this->input->getOptions(), 'dl-prefer-binary' => true], false);
|
||||
$installer = new PackageInstaller([...$this->input->getOptions(), 'dl-prefer-binary' => true], true);
|
||||
$installer->addInstallPackage($this->input->getArgument('package'));
|
||||
$installer->run(true);
|
||||
return static::SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user