Skip to content

Commit bf2e31f

Browse files
committed
application some logic update. update example images
1 parent e5f2ef7 commit bf2e31f

File tree

12 files changed

+260
-212
lines changed

12 files changed

+260
-212
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ $app->command('demo', function (Input $in, Output $out) {
6262
$app->run();
6363
```
6464

65+
now, you can see:
66+
67+
!['output-commands-info'](images/output-commands-info.png)
68+
6569
## input
6670

6771
example(in terminal):

README_zh.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ $bar = Show::progressBar($total, [
331331
'msg' => 'Msg Text',
332332
'doneChar' => '#'
333333
]);
334-
echo "progress:\n";
334+
echo "Progress:\n";
335335

336336
$i = 0;
337337
while ($i <= $total) {
@@ -341,6 +341,8 @@ while ($i <= $total) {
341341
}
342342
```
343343

344+
![show-progress](images/show-progress.png)
345+
344346
### 列表数据展示输出
345347

346348
```php

examples/HomeController.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function progressCommand($input)
112112
'signChar' => $input->getOpt('sign-char', '>'),
113113
]);
114114
} else {
115-
$bar = $this->output->progressTxt($total, 'Doing df df', 'Done');
115+
$bar = $this->output->progressTxt($total, 'Doing oo oo', 'Done');
116116
}
117117

118118
$this->write('Progress:');
@@ -148,7 +148,7 @@ public function fmtMsgCommand()
148148
'application version' => '1.2.0',
149149
'system version' => '5.2.3',
150150
'see help' => 'please use php bin/app -h',
151-
'a only value message',
151+
'a only value message text',
152152
];
153153
Show::panel($data, 'panel show', '#');
154154

@@ -172,8 +172,9 @@ public function fmtMsgCommand()
172172
'version' => 'Show application version information',
173173
'help' => 'Show application help information',
174174
'list' => 'List all group and independent commands',
175+
'a only value message text'
175176
];
176-
Show::aList($commands, 'aList show');
177+
Show::aList($commands, 'a List show');
177178

178179
Show::table([
179180
[
@@ -217,7 +218,7 @@ public function useArgCommand()
217218
}
218219

219220
/**
220-
* use Interact::confirm method
221+
* use <red>Interact::confirm</red> method
221222
*
222223
*/
223224
public function confirmCommand()
@@ -228,7 +229,7 @@ public function confirmCommand()
228229
}
229230

230231
/**
231-
* use <normal>Interact::select</normal> method
232+
* example for use <magenta>Interact::select</magenta> method
232233
*
233234
*/
234235
public function selectCommand()
@@ -246,11 +247,13 @@ public function envCommand()
246247
{
247248
$info = [
248249
'phpVersion' => PHP_VERSION,
249-
'env' => 'test',
250+
'env' => 'test',
250251
'debug' => true,
251252
];
252253

253254
Interact::panel($info);
255+
256+
echo Helper::printR($_SERVER);
254257
}
255258

256259
/**

images/output-color-text.png

116 KB
Loading

images/output-commands-info.png

125 KB
Loading

images/output-format-msg.png

95.7 KB
Loading

images/output-group-info.png

232 KB
Loading

images/show-progress.png

156 KB
Loading

0 commit comments

Comments
 (0)