Skip to content

Commit 1239f11

Browse files
refactor: used termwind for formatting the thanks message.
1 parent 08f4b38 commit 1239f11

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

app/Commands/CacheKill.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use App\Commands\Concerns\TuiCommand;
88
use LaravelZero\Framework\Commands\Command;
9+
use function Termwind\render;
910

1011
class CacheKill extends Command
1112
{
@@ -88,7 +89,10 @@ public function handle(): int
8889
$this->newLine();
8990
$this->line(' <fg=green>No package manager caches found.</>');
9091
$this->newLine();
91-
$this->line(' <fg=blue>Thanks for using CNKill!</>');
92+
93+
render('<div class="px-2 py-1">
94+
<div class="bg-blue-800 text-white font-bold px-1">Thanks for using CNKill!</div>
95+
</div>');
9296

9397
return 0;
9498
}

app/Commands/Concerns/TuiCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace App\Commands\Concerns;
66

7+
use function Termwind\render;
8+
79
trait TuiCommand
810
{
911
/**
@@ -796,7 +798,9 @@ protected function disableRawMode(): void
796798

797799
protected function thanks(): void
798800
{
799-
$this->line(' <fg=blue>Thanks for using CNKill!</>');
801+
render('<div class="px-2 py-1">
802+
<div class="bg-blue-800 text-white font-bold px-1">Thanks for using CNKill!</div>
803+
</div>');
800804

801805
$freed = $this->freedSizeKb();
802806

0 commit comments

Comments
 (0)