From 79feb56e29ba528bafe9ae519270438e0f5290d4 Mon Sep 17 00:00:00 2001 From: msamgan Date: Thu, 19 Sep 2024 18:14:50 -0400 Subject: [PATCH 1/2] Update the CLI UI for the command execution. --- app/Support/Tool.php | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/app/Support/Tool.php b/app/Support/Tool.php index 1976c4c..6a1fda5 100644 --- a/app/Support/Tool.php +++ b/app/Support/Tool.php @@ -16,30 +16,16 @@ abstract public function fix(): int; public function heading(string $heading): void { - render('
' . $heading . '
'); + render('
=> ' . $heading . '
'); } public function success(string $message): void { - render(<< -
Success
- - {$message} - - - HTML); + render('
>> ' . $message . '
'); } public function failure(string $message): void { - render(<< -
Error
- - {$message} - - - HTML); + render('
!! ' . $message . '
'); } } From 680845501643e0d5126d5117edf693c9a95aaa8f Mon Sep 17 00:00:00 2001 From: msamgan Date: Thu, 19 Sep 2024 20:25:48 -0400 Subject: [PATCH 2/2] added success and error key work in message: --- app/Support/Tool.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Support/Tool.php b/app/Support/Tool.php index 6a1fda5..373f916 100644 --- a/app/Support/Tool.php +++ b/app/Support/Tool.php @@ -21,11 +21,11 @@ public function heading(string $heading): void public function success(string $message): void { - render('
>> ' . $message . '
'); + render('
>> success: ' . $message . '
'); } public function failure(string $message): void { - render('
!! ' . $message . '
'); + render('
!! error: ' . $message . '
'); } }