Skip to content

Commit c9b0d97

Browse files
feat: add header display to configuration command
1 parent 5b1ac49 commit c9b0d97

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

app/Commands/ConfigCommand.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class ConfigCommand extends Command
3030

3131
public function handle(ConfigService $config): int
3232
{
33+
$this->printHeader();
34+
3335
$action = $this->argument('action');
3436

3537
return match ($action) {
@@ -40,6 +42,28 @@ public function handle(ConfigService $config): int
4042
};
4143
}
4244

45+
private function printHeader(): void
46+
{
47+
$art = [
48+
' ██████╗███╗ ██╗██╗ ██╗██╗██╗ ██╗ ',
49+
' ██╔════╝████╗ ██║██║ ██╔╝██║██║ ██║ ',
50+
' ██║ ██╔██╗ ██║█████╔╝ ██║██║ ██║ ',
51+
' ██║ ██║╚██╗██║██╔═██╗ ██║██║ ██║ ',
52+
' ╚██████╗██║ ╚████║██║ ██╗██║███████╗███████╗',
53+
' ╚═════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚═╝╚══════╝╚══════╝',
54+
];
55+
56+
$this->newLine();
57+
58+
foreach ($art as $line) {
59+
$this->line('<fg=blue>' . $line . '</>');
60+
}
61+
62+
$this->line(' <fg=gray>Configure which folder types cnkill scans.</>');
63+
$this->line(' <fg=yellow>' . app()->version() . '</>');
64+
$this->newLine();
65+
}
66+
4367
// -------------------------------------------------------------------------
4468
// cnkill config (checkbox list of all types)
4569
// -------------------------------------------------------------------------

0 commit comments

Comments
 (0)