Skip to content

Commit 8f6a951

Browse files
committed
Add an ASCII logo to the namespace command
- Added Application file to extend Silly's Application. - Changed the valet main file to use the new Application within Valet namespace. - Added an Valet's logo in ASCII art form to the extended getHelp function. This will only show on the namespace command: `valet`; or the `valet list` command.
1 parent a6d55c8 commit 8f6a951

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

cli/Valet/Application.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Valet;
4+
5+
use Silly\Application as SillyApplication;
6+
7+
class Application extends SillyApplication {
8+
/** @var string */
9+
private static $logo =
10+
" _ _ __ __ _ _ ____________
11+
| | | | \ \ / / | | | | | \
12+
| | __ _ _ __ __ ___ _____| | \ \ / /_ _| | ___| |_ |________ |
13+
| | / _` | '__/ _` \ \ / / _ \ | \ \/ / _` | |/ _ \ __| | |
14+
| |___| (_| | | | (_| |\ V / __/ | \ / (_| | | __/ |_ ______| /
15+
|______\__,_|_| \__,_| \_/ \___|_| \/ \__,_|_|\___|\__| | /
16+
_ ___ __ |______ \
17+
| | / (_)___ ____/ /___ _ _______ | \
18+
| | /| / / / __ \/ __ / __ \ | /| / / ___/ ________| |
19+
| |/ |/ / / / / / /_/ / /_/ / |/ |/ (__ ) | |
20+
|__/|__/_/_/ /_/\__,_/\____/|__/|__/____/ |____________/
21+
22+
";
23+
public function getHelp(): string {
24+
return self::$logo . parent::getHelp();
25+
}
26+
}

cli/valet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
use Illuminate\Container\Container;
17-
use Silly\Application;
17+
use Valet\Application;
1818
use Symfony\Component\Console\Question\ConfirmationQuestion;
1919
use function Valet\info;
2020
use function Valet\info_dump;

0 commit comments

Comments
 (0)