Skip to content

Commit

Permalink
✨ added support for all v3 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Nov 15, 2021
1 parent d7314e9 commit 7c9097a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/CreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,14 @@ protected function execute(InputInterface $input, OutputInterface $output)
return $this->leaf($input, $output, $directory);
}

if ($preset === "skeleton" && $input->getOption("v3")) {
return $this->skeleton3($input, $output, $directory);
$installCommand = $composer . " create-project leafs/$preset " . basename($directory);

if ($input->getOption("v3")) {
$installCommand .= " v3.x-dev";
}

$commands = [
$composer . " create-project leafs/$preset " . basename($directory)
$installCommand,
];

if ($input->getOption('no-ansi')) {
Expand Down

0 comments on commit 7c9097a

Please sign in to comment.