We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c98541 commit 572e74fCopy full SHA for 572e74f
Core/core/Console/Console.php
@@ -63,6 +63,31 @@ protected static function userConstants()
63
return (object) get_defined_constants(true)['user'];
64
}
65
66
+ /**
67
+ * Display CLI banner
68
+ */
69
+ public static function displayBanner(): void
70
+ {
71
+ static $displayed = false;
72
+
73
+ if ($displayed) {
74
+ return;
75
+ }
76
77
+ $banner = <<<BANNER
78
79
+ ╦ ╦┌─┐┌┐ ┌┐ ┬ ┬ ╔═╗╦ ╦
80
+ ║║║├┤ ├┴┐├┴┐└┬┘ ║ ║ ║
81
+ ╚╩╝└─┘└─┘└─┘ ┴ ╚═╝╩═╝╩
82
83
+ BANNER;
84
85
+ echo ConsoleColor::cyan($banner);
86
+ echo ConsoleColor::dim("\t\t\tv" . WEBBY_VERSION . "\n\n");
87
88
+ $displayed = true;
89
90
91
/**
92
* Webby Cli welcome message
93
*
0 commit comments