Skip to content

Commit 05e1734

Browse files
committed
Merge branch 'enix-app-colored-cli-in-table' into develop
2 parents 0cf609e + 549f3f7 commit 05e1734

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ public static function table(array $tbody, array $thead = [])
945945
}
946946
}
947947

948-
fwrite(STDOUT, $table);
948+
static::write($table);
949949
}
950950

951951
//--------------------------------------------------------------------

tests/system/CLI/CLITest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public function tableProvider()
367367
[],
368368
"+---+-----+\n" .
369369
"| 1 | bar |\n" .
370-
"+---+-----+\n",
370+
"+---+-----+\n\n",
371371
],
372372
[
373373
$one_row,
@@ -376,7 +376,7 @@ public function tableProvider()
376376
"| ID | Title |\n" .
377377
"+----+-------+\n" .
378378
"| 1 | bar |\n" .
379-
"+----+-------+\n",
379+
"+----+-------+\n\n",
380380
],
381381
[
382382
$many_rows,
@@ -385,7 +385,7 @@ public function tableProvider()
385385
"| 1 | bar |\n" .
386386
"| 2 | bar * 2 |\n" .
387387
"| 3 | bar + bar + bar |\n" .
388-
"+---+-----------------+\n",
388+
"+---+-----------------+\n\n",
389389
],
390390
[
391391
$many_rows,
@@ -396,7 +396,7 @@ public function tableProvider()
396396
"| 1 | bar |\n" .
397397
"| 2 | bar * 2 |\n" .
398398
"| 3 | bar + bar + bar |\n" .
399-
"+----+-----------------+\n",
399+
"+----+-----------------+\n\n",
400400
],
401401
];
402402
}

0 commit comments

Comments
 (0)