Skip to content

Commit

Permalink
Add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Feb 15, 2023
1 parent 4275159 commit 3aecb53
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"illuminate/http": "^7.0 || ^8.0 || ^9.0",
"illuminate/translation": "^7.0 || ^8.0 || ^9.0",
"illuminate/validation": "^7.0 || ^8.0 || ^9.0",
"laminas/laminas-text": "^2.7",
"laravel-zero/framework": "^7.2 || ^8.0 || ^9.0",
"marcocesarato/php-conventional-changelog": "^1.16",
"mockery/mockery": "^1.3",
Expand Down
80 changes: 80 additions & 0 deletions config/logo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?php

declare(strict_types=1);

/**
* This file is part of the guanguans/ai-commit.
*
* (c) guanguans <ityaozm@gmail.com>
*
* This source file is subject to the MIT license that is bundled.
*/

return [
/*
|--------------------------------------------------------------------------
| Enabled
|--------------------------------------------------------------------------
|
| This value determines if the app name should be represented as an
| ASCII logo. This file provides a sane default location for all
| information concerning the logo and is display customization.
|
*/

'enabled' => true,

/*
|--------------------------------------------------------------------------
| Default Font
|--------------------------------------------------------------------------
|
| This option defines the font which should be used for rendering.
| By default, one default font is shipped. However, you are free
| to download and use additional fonts: http://www.figlet.org.
|
*/

'font' => \LaravelZero\Framework\Components\Logo\FigletString::DEFAULT_FONT,

/*
|--------------------------------------------------------------------------
| Output Width
|--------------------------------------------------------------------------
|
| This option defines the maximum width of the output string. This is
| used for word-wrap as well as justification. Be careful when using
| small values, because they may result in an undefined behavior.
|
*/

'outputWidth' => 80,

/*
|--------------------------------------------------------------------------
| Justification
|--------------------------------------------------------------------------
|
| This option defines the justification of the logo text. By default,
| justification is provided, which will work well on most of your
| console apps. Of course, you are free to change this value.
|
*/

'justification' => null,

/*
|--------------------------------------------------------------------------
| Right To Left
|--------------------------------------------------------------------------
|
| This option defines the option in which the text is written. By, default
| the setting of the font-file is used. When justification is not defined,
| a text written from right-to-left is automatically right-aligned.
|
| Possible values: "right-to-left", "left-to-right", null
|
*/

'rightToLeft' => null,
];

0 comments on commit 3aecb53

Please sign in to comment.