Skip to content

Commit 8ea5a65

Browse files
committed
Make logo a built-in style
1 parent f2d8922 commit 8ea5a65

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ There are a number of pre-defined built-in styles that allows you granular custo
483483
- help_summary
484484
- help_text
485485
- info
486+
- logo
486487
- ok
487488
- question
488489
- version

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public function showHelp(): mixed
353353
$footer = 'Run `<command> --help` for specific help';
354354

355355
if ($this->logo) {
356-
$writer->write($this->logo, true);
356+
$writer->logo($this->logo, true);
357357
}
358358

359359
$this->outputHelper()->showCommandsHelp($this->commands(), $header, $footer);

src/IO/Interactor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
* @method Writer help_summary($text, $eol = false)
160160
* @method Writer help_text($text, $eol = false)
161161
* @method Writer info($text, $eol = false)
162+
* @method Writer logo($text, $eol = false)
162163
* @method Writer ok($text, $eol = false)
163164
* @method Writer purple($text, $eol = false)
164165
* @method Writer purpleBgBlack($text, $eol = false)

src/Output/Color.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class Color
6868
'help_summary' => ['fg' => 37, 'mod' => 2],
6969
'help_text' => ['fg' => 37, 'mod' => 1],
7070
'info' => ['fg' => 34],
71+
'logo' => ['fg' => 37],
7172
'ok' => ['fg' => 32],
7273
'question' => ['fg' => 33],
7374
'version' => ['fg' => 37, 'mod' => 1],

src/Output/Writer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
* @method Writer help_summary($text, $eol = false)
156156
* @method Writer help_text($text, $eol = false)
157157
* @method Writer info($text, $eol = false)
158+
* @method Writer logo($text, $eol = false)
158159
* @method Writer ok($text, $eol = false)
159160
* @method Writer purple($text, $eol = false)
160161
* @method Writer purpleBgBlack($text, $eol = false)

0 commit comments

Comments
 (0)