Skip to content

Commit eab28a8

Browse files
committed
remove Style to Components dir
1 parent 263d8b2 commit eab28a8

File tree

12 files changed

+18
-18
lines changed

12 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ $output->write('hello <info>world<info>');
396396
- **单独使用颜色风格**
397397

398398
```php
399-
$style = Inhere\Console\Style\Style::create();
399+
$style = Inhere\Console\Components\Style\Style::create();
400400

401401
echo $style->render('no color <info>color text</info>');
402402

examples/Controllers/HomeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Inhere\Console\Components\Download;
88
use Inhere\Console\Controller;
99
use Inhere\Console\IO\Input;
10-
use Inhere\Console\Style\Highlighter;
11-
use Inhere\Console\Style\LiteStyle;
10+
use Inhere\Console\Components\Style\Highlighter;
11+
use Inhere\Console\Components\Style\LiteStyle;
1212
use Inhere\Console\Utils\Helper;
1313
use Inhere\Console\Utils\Interact;
1414
use Inhere\Console\Utils\ProgressBar;

examples/commands.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @var Inhere\Console\Application $app
88
*/
99

10-
use Inhere\Console\BuiltIn\PharController;
10+
// use Inhere\Console\BuiltIn\PharController;
1111
use Inhere\Console\Examples\Commands\DemoCommand;
1212
use Inhere\Console\Examples\Commands\TestCommand;
1313
use Inhere\Console\Examples\Controllers\HomeController;
@@ -26,7 +26,7 @@
2626
'aliases' => ['t']
2727
]);
2828

29-
$app->controller(PharController::class);
29+
// $app->controller(PharController::class);
3030

3131
$app->controller('home', HomeController::class, [
3232
'aliases' => ['h']

src/Base/AbstractApplication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
use Inhere\Console\IO\Input;
1212
use Inhere\Console\IO\Output;
13-
use Inhere\Console\Style\Highlighter;
13+
use Inhere\Console\Components\Style\Highlighter;
1414
use Inhere\Console\Traits\InputOutputAwareTrait;
1515
use Inhere\Console\Traits\SimpleEventTrait;
16-
use Inhere\Console\Style\Style;
16+
use Inhere\Console\Components\Style\Style;
1717
use Inhere\Console\Utils\FormatUtil;
1818
use Inhere\Console\Utils\Helper;
1919

src/Style/Color.php renamed to src/Components/Style/Color.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* Created by PhpStorm.
44
*/
55

6-
namespace Inhere\Console\Style;
6+
namespace Inhere\Console\Components\Style;
77

88
/**
99
* Class Color
1010
* - fg unset 39
1111
* - bg unset 49
12-
* @package Inhere\Console\Style
12+
* @package Inhere\Console\Components\Style
1313
*/
1414
final class Color
1515
{

src/Style/Highlighter.php renamed to src/Components/Style/Highlighter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
* Time: 15:50
77
*/
88

9-
namespace Inhere\Console\Style;
9+
namespace Inhere\Console\Components\Style;
1010

1111
/**
1212
* Class Highlighter
13-
* @package Inhere\Console\Style
13+
* @package Inhere\Console\Components\Style
1414
*
1515
* @see jakub-onderka/php-console-highlighter
1616
* @link https://github.com/JakubOnderka/PHP-Console-Highlighter/blob/master/src/Highlighter.php

src/Style/LiteStyle.php renamed to src/Components/Style/LiteStyle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Time: 下午7:45
77
*/
88

9-
namespace Inhere\Console\Style;
9+
namespace Inhere\Console\Components\Style;
1010

1111
use Inhere\Console\Utils\Helper;
1212

src/Style/Style.php renamed to src/Components/Style/Style.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
* file: Color.php
99
*/
1010

11-
namespace Inhere\Console\Style;
11+
namespace Inhere\Console\Components\Style;
1212

1313
use Inhere\Console\Utils\Helper;
1414

1515
/**
1616
* Class Style
17-
* @package Inhere\Console\Style
17+
* @package Inhere\Console\Components\Style
1818
* @link https://github.com/ventoviro/windwalker-IO
1919
*
2020
* @method string info(string $message)

src/IO/Output.php

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

99
namespace Inhere\Console\IO;
1010

11-
use Inhere\Console\Style\Style;
11+
use Inhere\Console\Components\Style\Style;
1212
use Inhere\Console\Traits\FormatOutputAwareTrait;
1313
use Inhere\Console\Utils\Helper;
1414
use Inhere\Console\Utils\Show;

src/LiteApp.php

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

99
namespace Inhere\Console;
1010

11-
use Inhere\Console\Style\LiteStyle;
11+
use Inhere\Console\Components\Style\LiteStyle;
1212

1313
/**
1414
* Class LiteApp - Lite Application

0 commit comments

Comments
 (0)