Update output

This commit is contained in:
Oliver Davies 2020-02-09 21:46:24 +00:00
parent 41c23185c4
commit bee4a6b5d8

View file

@ -60,6 +60,8 @@ final class GenerateDrupal7Command extends Command
{
$this->io = new SymfonyStyle($input, $output);
$this->io->title("{$this->getApplication()->getName()} (D7)");
$this->machineName = $input->getArgument('module-name');
$this->moduleName = $this->moduleNameConverter->__invoke($this->machineName);
$this->testName = $this->testNameConverter->__invoke($this->machineName);
@ -113,7 +115,11 @@ final class GenerateDrupal7Command extends Command
$createdFiles->push($filename);
}
$this->io->listing($createdFiles->filter()->sort()->toArray());
if ($createdFiles->isNotEmpty()) {
$this->io->block('Files generated:');
$this->io->listing($createdFiles->sort()->toArray());
}
}
private function updateFileContents($contents)