From c6ae418401d614cb31e864a738a066ca4c84cf89 Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Thu, 9 May 2024 08:38:54 +0200 Subject: [PATCH] wip --- src/Commands/UpdatePermanentCachesCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Commands/UpdatePermanentCachesCommand.php b/src/Commands/UpdatePermanentCachesCommand.php index ad521b3..aa9c696 100644 --- a/src/Commands/UpdatePermanentCachesCommand.php +++ b/src/Commands/UpdatePermanentCachesCommand.php @@ -4,6 +4,7 @@ use Illuminate\Console\Command; use ReflectionClass; +use Spatie\Emoji\Emoji; use Symfony\Component\Console\Helper\ProgressBar; use Vormkracht10\PermanentCache\Facades\PermanentCache; @@ -45,7 +46,10 @@ public function handle() $caches->each(function ($cache) use ($progressBar) { $cache->update(); - $progressBar->setMessage('Updating: '.(new ReflectionClass($cache))->getName()); + $currentTask = (new ReflectionClass($cache))->getName(); + $emoji = ($progressBar->getProgress() %2 ? Emoji::hourglassNotDone() : Emoji::hourglassDone()); + + $progressBar->setMessage('Updating: '.$currentTask.' '.$emoji); $progressBar->advance(); });