Skip to content

Commit abfbaab

Browse files
committed
update readme, some update ...
1 parent 4becec5 commit abfbaab

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
- 命令行应用, 命令行的 `controller`, `command` 解析运行
66
- 功能全面的命令行的选项参数解析
77
- 命令行中功能强大的 `input`, `output` 管理、使用
8-
- 消息文本的多种颜色风格输出支持
8+
- 消息文本的多种颜色风格输出支持(`info`, `comment`, `success`, `danger`, `error` ... ...)
99
- 常用的特殊格式信息显示(`section`, `panel`, `padding`, `help-panel`, `table`, `title`, `list`, `progressBar`)
1010
- 常用的用户信息交互支持(`select`, `confirm`, `ask/question`)
1111
- 命令方法注释自动解析(提取为参数 `arguments` 和 选项 `options` 等信息)
1212
- 类似 `symfony/console` 的预定义参数定义支持(按位置赋予参数值)
1313

14-
> [EN README](./README_en.md)
14+
## [EN README](./README_en.md)
1515

1616
## 项目地址
1717

@@ -75,7 +75,7 @@ $app->run();
7575

7676
然后在命令行里执行 `php examples/app`, 立即就可以看到如下输出了:
7777

78-
!['output-commands-info'](images/output-commands-info.png)
78+
!['output-commands-info'](images/output-commands-info.jpg)
7979

8080
> `Independent Commands` 中的 demo 就是我们上面添加的命令
8181
@@ -386,6 +386,8 @@ $data = [
386386
Show::aList($data, $title);
387387
```
388388

389+
> 渲染效果请看下面的预览
390+
389391
### 多列表数据展示输出
390392

391393
```php
@@ -413,6 +415,8 @@ $data = [
413415
Show::mList($data);
414416
```
415417

418+
> 渲染效果请看下面的预览
419+
416420
### 面板展示信息输出
417421

418422
```php
@@ -433,6 +437,8 @@ $data = [
433437
Show::panel($data, 'panel show', '#');
434438
```
435439

440+
> 渲染效果请看下面的预览
441+
436442
### 数据表格信息输出
437443

438444
```php
@@ -471,6 +477,8 @@ $opts = [
471477
Show::table($data, 'a table', $opts);
472478
```
473479

480+
> 渲染效果请看下面的预览
481+
474482
### 快速的渲染一个帮助信息面板
475483

476484
```php
@@ -640,10 +648,6 @@ MIT
640648

641649
## 我的其他项目
642650

643-
### `inhere/redis` [github](https://github.com/inhere/php-redis) [git@osc](https://git.oschina.net/inhere/php-redis)
644-
645-
简单的redis操作客户端包装库
646-
647651
### `inhere/sroute` [github](https://github.com/inhere/php-srouter) [git@osc](https://git.oschina.net/inhere/php-srouter)
648652

649653
轻量且功能丰富快速的路由库
@@ -654,4 +658,8 @@ MIT
654658

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

657-
http 工具库(`request` 请求 `response` 响应 `curl` curl请求库,有简洁、完整和并发请求三个版本的类)
661+
http message 工具库(PSR 7 实现)
662+
663+
### `inhere/http-client` [github](https://github.com/inhere/php-http) [git@osc](https://git.oschina.net/inhere/php-http)
664+
665+
http client 工具库(`request` 请求 `response` 响应 `curl` curl请求库,有简洁、完整和并发请求三个版本的类)

README_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $app->run();
6868

6969
now, you can see:
7070

71-
!['output-commands-info'](images/output-commands-info.png)
71+
!['output-commands-info'](images/output-commands-info.jpg)
7272

7373
## input
7474

images/command-group-example.jpg

79.8 KB
Loading

images/output-commands-info.jpg

71.5 KB
Loading

images/output-commands-info.png

-249 KB
Binary file not shown.

images/output-group-info.png

-395 KB
Binary file not shown.

src/Utils/ProgressBar.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ private static function loadDefaultParsers()
539539
},
540540
'estimated' => function (self $bar) {
541541
if (!$bar->getMaxSteps()) {
542-
throw new \LogicException('Unable to display the estimated time if the maximum number of steps is not set.');
542+
return 0;
543+
// throw new \LogicException('Unable to display the estimated time if the maximum number of steps is not set.');
543544
}
544545

545546
if (!$bar->getProgress()) {

0 commit comments

Comments
 (0)