Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the CLI UI for the command execution. #158

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>');
}
}