Created new table with row separators for CLI, to use with multi-line rows

This commit is contained in:
Alejandro Celaya
2021-08-03 10:21:42 +02:00
parent 8fbf05acd4
commit 20f70b8b07
10 changed files with 40 additions and 12 deletions

View File

@@ -97,7 +97,7 @@ class GenerateKeyCommand extends BaseCommand
$io->success(sprintf('Generated API key: "%s"', $apiKey->toString()));
if (! $apiKey->isAdmin()) {
ShlinkTable::fromOutput($io)->render(
ShlinkTable::default($io)->render(
['Role name', 'Role metadata'],
$apiKey->mapRoles(fn (string $name, array $meta) => [$name, arrayToString($meta, 0)]),
null,