Skip to content

Commit d4c228a

Browse files
fix: adjust output formatting for the thanks message and the search results
1 parent 97ffdb8 commit d4c228a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/Commands/CacheKill.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public function handle(): int
8686

8787
if (empty($paths)) {
8888
$this->newLine();
89-
$this->info('No package manager caches found.');
89+
$this->line(' <fg=green>No package manager caches found.</>');
9090
$this->newLine();
91-
$this->line('<fg=blue>Thanks for using CNKill!</>');
91+
$this->line(' <fg=blue>Thanks for using CNKill!</>');
9292

9393
return 0;
9494
}

app/Commands/CnKill.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function (): void {
161161
// If the list is empty after find completes, say so
162162
if (empty($this->dirs)) {
163163
$this->newLine();
164-
$this->info('No ' . $this->targetLabel() . ' directories found in this path.');
164+
$this->line(' <fg=green>No ' . $this->targetLabel() . ' directories found in this path.</>');
165165
} else {
166166
$this->newLine();
167167
$this->showSummary();

app/Commands/Concerns/TuiCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,12 @@ protected function disableRawMode(): void
797797
protected function thanks(): void
798798
{
799799
$this->newLine();
800-
$this->line('<fg=blue>Thanks for using CNKill!</>');
800+
$this->line(' <fg=blue>Thanks for using CNKill!</>');
801801

802802
$freed = $this->freedSizeKb();
803803

804804
if ($freed > 0) {
805-
$this->line('<fg=gray>Space released: ' . $this->formatSize($freed) . '</>');
805+
$this->line(' <fg=gray>Space released: ' . $this->formatSize($freed) . '</>');
806806
}
807807
}
808808

0 commit comments

Comments
 (0)