Skip to content

Commit

Permalink
Merge pull request #158 from msamgan/Cli-UI-update
Browse files Browse the repository at this point in the history
Update the CLI UI for the command execution.
  • Loading branch information
driftingly authored Sep 27, 2024
2 parents 0128c2e + 6808455 commit d0e84f0
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">>> success: ' . $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">!! error: ' . $message . '</div>');
}
}

0 comments on commit d0e84f0

Please # to comment.