1
0
This commit is contained in:
Richard Dern 2024-05-08 14:55:39 +02:00
parent 516e6fd3d0
commit 1d6240afcd

View File

@ -81,9 +81,9 @@ private function selectDisk(): self
$this->sourceDisk = Storage::disk($sourceDisk);
$this->targetDisk = Storage::disk($targetDisk);
$this->comment(
$this->line(
sprintf(
'Using `%s` as source disk and `%s` as target disk for generated content',
'Using <info>%s</info> as source disk and <info>%s</info> as target disk for generated content',
$sourceDisk,
$targetDisk
)
@ -142,13 +142,13 @@ private function clearCache(): self
private function getBundles()
{
$path = $this->argument('path') ?? '/';
$comment = sprintf('Rendering %s', $path);
$comment = sprintf('Rendering <info>%s</info>', $path);
if ($this->option('recursive')) {
$comment .= ' and all sub-bundles';
$comment .= ' and <info>all sub-bundles</info>';
}
$this->comment($comment);
$this->line($comment);
$this->output->write('Collecting bundles... ');
if ($this->option('recursive')) {
@ -184,13 +184,12 @@ private function render(): self
private function handleBundle(Bundle $bundle, $progress)
{
$progress->label(sprintf('Rendering %s ...', $bundle->getPath()));
$progress->hint('Rendering the bundle');
if ($this->option('dry-run')) {
return;
}
$progress->hint('Rendering the bundle');
$result = $bundle->render();
foreach ($result as $path => $content) {