mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Fix interactive install-pkg command
This commit is contained in:
@@ -34,7 +34,7 @@ class InstallPackageCommand extends BaseCommand
|
|||||||
public function handle(): int
|
public function handle(): int
|
||||||
{
|
{
|
||||||
ApplicationContext::set('elephant', true);
|
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->addInstallPackage($this->input->getArgument('package'));
|
||||||
$installer->run(true);
|
$installer->run(true);
|
||||||
return static::SUCCESS;
|
return static::SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user