Skip to content

Commit

Permalink
remove Style to Components dir
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 13, 2018
1 parent 263d8b2 commit eab28a8
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ $output->write('hello <info>world<info>');
- **单独使用颜色风格**

```php
$style = Inhere\Console\Style\Style::create();
$style = Inhere\Console\Components\Style\Style::create();

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

Expand Down
4 changes: 2 additions & 2 deletions examples/Controllers/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Inhere\Console\Components\Download;
use Inhere\Console\Controller;
use Inhere\Console\IO\Input;
use Inhere\Console\Style\Highlighter;
use Inhere\Console\Style\LiteStyle;
use Inhere\Console\Components\Style\Highlighter;
use Inhere\Console\Components\Style\LiteStyle;
use Inhere\Console\Utils\Helper;
use Inhere\Console\Utils\Interact;
use Inhere\Console\Utils\ProgressBar;
Expand Down
4 changes: 2 additions & 2 deletions examples/commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @var Inhere\Console\Application $app
*/

use Inhere\Console\BuiltIn\PharController;
// use Inhere\Console\BuiltIn\PharController;
use Inhere\Console\Examples\Commands\DemoCommand;
use Inhere\Console\Examples\Commands\TestCommand;
use Inhere\Console\Examples\Controllers\HomeController;
Expand All @@ -26,7 +26,7 @@
'aliases' => ['t']
]);

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

$app->controller('home', HomeController::class, [
'aliases' => ['h']
Expand Down
4 changes: 2 additions & 2 deletions src/Base/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

use Inhere\Console\IO\Input;
use Inhere\Console\IO\Output;
use Inhere\Console\Style\Highlighter;
use Inhere\Console\Components\Style\Highlighter;
use Inhere\Console\Traits\InputOutputAwareTrait;
use Inhere\Console\Traits\SimpleEventTrait;
use Inhere\Console\Style\Style;
use Inhere\Console\Components\Style\Style;
use Inhere\Console\Utils\FormatUtil;
use Inhere\Console\Utils\Helper;

Expand Down
4 changes: 2 additions & 2 deletions src/Style/Color.php → src/Components/Style/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Created by PhpStorm.
*/

namespace Inhere\Console\Style;
namespace Inhere\Console\Components\Style;

/**
* Class Color
* - fg unset 39
* - bg unset 49
* @package Inhere\Console\Style
* @package Inhere\Console\Components\Style
*/
final class Color
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* Time: 15:50
*/

namespace Inhere\Console\Style;
namespace Inhere\Console\Components\Style;

/**
* Class Highlighter
* @package Inhere\Console\Style
* @package Inhere\Console\Components\Style
*
* @see jakub-onderka/php-console-highlighter
* @link https://github.com/JakubOnderka/PHP-Console-Highlighter/blob/master/src/Highlighter.php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Time: 下午7:45
*/

namespace Inhere\Console\Style;
namespace Inhere\Console\Components\Style;

use Inhere\Console\Utils\Helper;

Expand Down
4 changes: 2 additions & 2 deletions src/Style/Style.php → src/Components/Style/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
* file: Color.php
*/

namespace Inhere\Console\Style;
namespace Inhere\Console\Components\Style;

use Inhere\Console\Utils\Helper;

/**
* Class Style
* @package Inhere\Console\Style
* @package Inhere\Console\Components\Style
* @link https://github.com/ventoviro/windwalker-IO
*
* @method string info(string $message)
Expand Down
2 changes: 1 addition & 1 deletion src/IO/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Inhere\Console\IO;

use Inhere\Console\Style\Style;
use Inhere\Console\Components\Style\Style;
use Inhere\Console\Traits\FormatOutputAwareTrait;
use Inhere\Console\Utils\Helper;
use Inhere\Console\Utils\Show;
Expand Down
2 changes: 1 addition & 1 deletion src/LiteApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Inhere\Console;

use Inhere\Console\Style\LiteStyle;
use Inhere\Console\Components\Style\LiteStyle;

/**
* Class LiteApp - Lite Application
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/FormatOutputAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Inhere\Console\Traits;

use Inhere\Console\Style\Style;
use Inhere\Console\Components\Style\Style;
use Inhere\Console\Utils\Helper;
use Inhere\Console\Utils\Show;

Expand Down
2 changes: 1 addition & 1 deletion src/Utils/Show.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
namespace Inhere\Console\Utils;

use Inhere\Console\Components\StrBuffer;
use Inhere\Console\Style\Style;
use Inhere\Console\Components\Style\Style;

/**
* Class Show
Expand Down

0 comments on commit eab28a8

Please sign in to comment.