Skip to content

Commit f6efb37

Browse files
committed
feat: integrate docker flag into scaffolds
1 parent dd5def9 commit f6efb37

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

src/CreateCommand.php

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,22 @@ protected function execute(InputInterface $input, OutputInterface $output): int
291291
});
292292

293293
if ($process->isSuccessful()) {
294-
$output->writeln("\nYou can start with:");
295-
$output->writeln("\n <info>cd</info> " . basename($directory));
296-
$output->writeln(" <info>leaf serve</info>");
297-
298-
if ($this->testing) {
299-
$output->writeln("\nYou can run tests with:");
300-
$output->writeln(" <info>leaf test</info>");
301-
}
302-
303-
$output->writeln("\nHappy gardening!");
294+
if ($input->getOption('docker')) {
295+
FS::superCopy(__DIR__ . '/themes/docker', $directory);
296+
$output->write("\n🚀 Docker environment scaffolded successfully");
297+
}
298+
299+
$output->writeln("\n🚀 Successfully created project <info>" . basename($directory) . "</info>");
300+
$output->writeln("👉 Get started with the following commands:");
301+
$output->writeln("\n <info>cd</info> " . basename($directory));
302+
$output->writeln(" <info>leaf serve</info>");
303+
304+
if ($this->testing) {
305+
$output->writeln("\n👉 You can run tests with:");
306+
$output->writeln("\n <info>leaf test</info>");
307+
}
308+
309+
$output->writeln("\n🍁 Happy gardening!");
304310
}
305311

306312
return 0;

0 commit comments

Comments
 (0)