Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed May 9, 2024
1 parent d129b82 commit c6ae418
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Commands/UpdatePermanentCachesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
});

Expand Down

0 comments on commit c6ae418

Please sign in to comment.