Skip to content

Commit

Permalink
Update the CLI UI for the command execution.
Browse files Browse the repository at this point in the history
  • Loading branch information
msamgan committed Sep 19, 2024
1 parent 0128c2e commit 79feb56
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions app/Support/Tool.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,16 @@ abstract public function fix(): int;

public function heading(string $heading): void
{
render('<div class="px-1 bg-green-300 text-black w-full text-center font-bold">' . $heading . '</div>');
render('<div class="font-bold bg-yellow-800 px-1">=> ' . $heading . '</div>');
}

public function success(string $message): void
{
render(<<<HTML
<div class="py-1 ml-2">
<div class="px-1 bg-green-300 text-black">Success</div>
<em class="ml-1">
{$message}
</em>
</div>
HTML);
render('<div class="text-green-900 bg-green-300 px-1 font-bold">>> ' . $message . '</div>');
}

public function failure(string $message): void
{
render(<<<HTML
<div class="py-1 ml-2">
<div class="px-1 bg-red-300 text-black">Error</div>
<em class="ml-1">
{$message}
</em>
</div>
HTML);
render('<div class="text-red-900 bg-red-300 px-1 font-bold">!! ' . $message . '</div>');
}
}

0 comments on commit 79feb56

Please # to comment.