Skip to content

Commit 8e8284d

Browse files
committed
update, change namspace name to upper
1 parent c3bb66c commit 8e8284d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+178
-178
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ git clone https://github.com/inhere/php-console.git // github
4242
## usage
4343

4444
```php
45-
use inhere\console\io\Input;
46-
use inhere\console\io\Output;
47-
use inhere\console\App;
45+
use Inhere\Console\IO\Input;
46+
use Inhere\Console\IO\Output;
47+
use Inhere\Console\App;
4848

4949
$meta = [
5050
'name' => 'My Console App',
@@ -183,7 +183,7 @@ $output->write('hello');
183183

184184
## more interactive
185185

186-
in the class `inhere\console\utils\Interact`
186+
in the class `Inhere\Console\Utils\Interact`
187187

188188
interactive method:
189189

README_zh.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ git clone https://github.com/inhere/php-console.git // github
4747

4848
```php
4949
// file: examples/app
50-
use inhere\console\io\Input;
51-
use inhere\console\io\Output;
52-
use inhere\console\App;
50+
use Inhere\Console\IO\Input;
51+
use Inhere\Console\IO\Output;
52+
use Inhere\Console\App;
5353

5454
$meta = [
5555
'name' => 'My Console App',
@@ -83,10 +83,10 @@ $app->run();
8383
添加命令的方式有三种
8484

8585
- 如上所示,使用闭包可以快速的添加一个简单的命令
86-
- 通过继承 `inhere\console\Command` 添加独立命令
86+
- 通过继承 `Inhere\Console\Command` 添加独立命令
8787

8888
```php
89-
use inhere\console\utils\AnsiCode;
89+
use Inhere\Console\Utils\AnsiCode;
9090

9191
/**
9292
* Class Test
@@ -96,8 +96,8 @@ class TestCommand extends Command
9696
{
9797
/**
9898
* execute
99-
* @param inhere\console\io\Input $input
100-
* @param inhere\console\io\Output $output
99+
* @param Inhere\Console\IO\Input $input
100+
* @param Inhere\Console\IO\Output $output
101101
* @return int
102102
*/
103103
public function execute($input, $output)
@@ -109,10 +109,10 @@ class TestCommand extends Command
109109

110110
注册命令,在 `$app->run()` 之前通过 `$app->command('test', TestCommand::class)` 注册独立命令。
111111

112-
- 通过继承 `inhere\console\Controller` 添加一组命令(命令行的控制器类)
112+
- 通过继承 `Inhere\Console\Controller` 添加一组命令(命令行的控制器类)
113113

114114
```php
115-
use inhere\console\Controller;
115+
use Inhere\Console\Controller;
116116

117117
/**
118118
* default command controller. there are some command usage examples
@@ -150,7 +150,7 @@ class HomeController extends Controller
150150

151151
## 输入
152152

153-
> 输入对象是 `inhere\console\io\Input` 的实例
153+
> 输入对象是 `Inhere\Console\IO\Input` 的实例
154154
155155
在终端中执行如下命令,用于演示参数选项等信息的解析:
156156

@@ -268,7 +268,7 @@ echo $name; // 'simon'
268268

269269
## 输出
270270

271-
> 输出对象是 `inhere\console\io\Output` 的实例
271+
> 输出对象是 `Inhere\Console\IO\Output` 的实例
272272
273273
基本输出:
274274

@@ -299,9 +299,9 @@ $output->write('hello <info>world<info>');
299299

300300
![alt text](images/output-color-text.png "Title")
301301

302-
来自于类 `inhere\console\utils\Show`
302+
来自于类 `Inhere\Console\Utils\Show`
303303

304-
> output 实例拥有 `inhere\console\utils\Show` 的所有格式化输出方法。不过都是通过对象式访问的。
304+
> output 实例拥有 `Inhere\Console\Utils\Show` 的所有格式化输出方法。不过都是通过对象式访问的。
305305
306306
### 标题文本输出
307307

@@ -491,7 +491,7 @@ Show::helpPanel([
491491

492492
## 用户交互方法
493493

494-
需引入类 `inhere\console\utils\Interact`
494+
需引入类 `Inhere\Console\Utils\Interact`
495495

496496
### 从给出的列表中选择一项
497497

@@ -643,4 +643,4 @@ MIT
643643

644644
### `inhere/http` [github](https://github.com/inhere/php-http) [git@osc](https://git.oschina.net/inhere/php-http)
645645

646-
http 工具库(`request` 请求 `response` 响应 `curl` curl请求库,有简洁、完整和并发请求三个版本的类)
646+
http 工具库(`request` 请求 `response` 响应 `curl` curl请求库,有简洁、完整和并发请求三个版本的类)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"inhere\\console\\" : "src/"
20+
"Inhere\\Console\\" : "src/"
2121
}
2222
},
2323
"suggest": {

document.md

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

2222
```
2323
$ php examples/app demo john male 43 --opt1 value1 -y
24-
hello, this in inhere\console\examples\DemoCommand::execute
24+
hello, this in Inhere\Console\examples\DemoCommand::execute
2525
this is argument and option example:
2626
the opt1's value
2727
option: opt1 |

examples/DemoCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
* Time: 18:58
77
*/
88

9-
namespace inhere\console\examples;
9+
namespace Inhere\Console\Examples;
1010

11-
use inhere\console\Command;
12-
use inhere\console\io\Input;
11+
use Inhere\Console\Command;
12+
use Inhere\Console\IO\Input;
1313

1414
/**
1515
* Class DemoCommand

examples/HomeController.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?php
22

3-
namespace inhere\console\examples;
3+
namespace Inhere\Console\Examples;
44

5-
use inhere\console\Controller;
6-
use inhere\console\io\Input;
7-
use inhere\console\utils\AnsiCode;
8-
use inhere\console\utils\Download;
9-
use inhere\console\utils\Helper;
10-
use inhere\console\utils\Show;
11-
use inhere\console\utils\Interact;
5+
use Inhere\Console\Controller;
6+
use Inhere\Console\IO\Input;
7+
use Inhere\Console\Utils\AnsiCode;
8+
use Inhere\Console\Utils\Download;
9+
use Inhere\Console\Utils\Helper;
10+
use Inhere\Console\Utils\Show;
11+
use Inhere\Console\Utils\Interact;
1212

1313
/**
1414
* default command controller. there are some command usage examples(1)
1515
*
1616
* Class HomeController
17-
* @package inhere\console\examples
17+
* @package Inhere\Console\examples
1818
*/
1919
class HomeController extends Controller
2020
{

examples/TestCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
* Time: 18:58
77
*/
88

9-
namespace inhere\console\examples;
9+
namespace Inhere\Console\Examples;
1010

11-
use inhere\console\Command;
11+
use Inhere\Console\Command;
1212

1313
/**
1414
* Class Test
15-
* @package app\console\commands
1615
*/
1716
class TestCommand extends Command
1817
{

examples/app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ define('PROJECT_PATH', dirname(__DIR__));
66
require __DIR__ . '/s-autoload.php';
77

88
// create app instance
9-
$app = new \inhere\console\App([
9+
$app = new \Inhere\Console\Application([
1010
'debug' => true,
1111
'rootPath' => PROJECT_PATH,
1212
]);

examples/baks/OldInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace inhere\console\examples\baks;
3+
namespace Inhere\Console\examples\baks;
44

55
/**
66
* Created by PhpStorm.

examples/baks/progress_bar1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require dirname(__DIR__) . '/../../autoload.php';
33

4-
use inhere\console\utils\ProgressBar;
4+
use Inhere\Console\Utils\ProgressBar;
55

66
$i = 1;
77
$total = 100;

0 commit comments

Comments
 (0)