Fix interactive install-pkg command

This commit is contained in:
crazywhalecc
2026-03-20 09:31:24 +08:00
parent b0eff0ba6e
commit c6207d8c7c

View File

@@ -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;