Skip to content

Commit 4a9e20d

Browse files
committed
✨ added support for 3rd party installs
1 parent f77dbc0 commit 4a9e20d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/InstallCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ protected function configure()
2424
protected function execute(InputInterface $input, OutputInterface $output)
2525
{
2626
$package = $input->getArgument("package");
27+
if (strpos($package, '/') == false) $package = "leafs/$package";
28+
2729
$version = $input->getArgument("version") ?? null;
2830

2931
$output->writeln("<info>Installing $package...</info>");
3032
$composer = $this->findComposer();
31-
$process = Process::fromShellCommandline("$composer require leafs/$package $version", null, null, null, null);
33+
$process = Process::fromShellCommandline(
34+
"$composer require $package $version", null, null, null, null
35+
);
3236

3337
$process->run(function ($type, $line) use ($output) {
3438
$output->write($line);

0 commit comments

Comments
 (0)