Added current page message in list short urls CLI command

This commit is contained in:
Alejandro Celaya
2018-12-08 12:16:39 +01:00
parent bb40d84212
commit 1983fc9b67
3 changed files with 12 additions and 3 deletions

View File

@@ -126,7 +126,10 @@ class ListShortUrlsCommand extends Command
$rows[] = array_values($shortUrl);
}
ShlinkTable::fromOutput($output)->render($headers, $rows);
ShlinkTable::fromOutput($output)->render($headers, $rows, $this->formatCurrentPageMessage(
$result,
'Page %s of %s'
));
return $result;
}