Skip to content

Commit

Permalink
Adding title
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto-butti committed Nov 18, 2023
1 parent 6ecb779 commit 5ea564c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/LaraLensCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ public function handle(): void
if (is_null($this->urlPath)) {
$this->urlPath = self::DEFAULT_PATH;
}

$version = \Composer\InstalledVersions::getPrettyVersion('hi-folks/lara-lens');
$this->title("Laralens (" . $version . ")");
match ($op) {
'overview' => $this->overview($checkTable, $columnSorting, $show),
'allconfigs' => $this->allConfigs(),
Expand Down
4 changes: 4 additions & 0 deletions src/Lens/Traits/TermOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,8 @@ public function printChecksTerm(array $rows): void
])
);
}
public function title(string $title): void
{
render("<div class='w-full mx-1 py-1 mt-1 text-center font-bold bg-orange text-white'>$title</div>");
}
}

0 comments on commit 5ea564c

Please sign in to comment.