mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Better rendering for all core commands
This commit is contained in:
parent
233eb91be4
commit
e1b33efb3d
8 changed files with 78 additions and 77 deletions
|
@ -52,11 +52,11 @@ class ShowUserCommand extends ContainerAwareCommand
|
|||
private function showUser(User $user)
|
||||
{
|
||||
$this->io->listing([
|
||||
sprintf('Username : %s', $user->getUsername()),
|
||||
sprintf('Email : %s', $user->getEmail()),
|
||||
sprintf('Display name : %s', $user->getName()),
|
||||
sprintf('Creation date : %s', $user->getCreatedAt()->format('Y-m-d H:i:s')),
|
||||
sprintf('Last login : %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'),
|
||||
sprintf('Username: %s', $user->getUsername()),
|
||||
sprintf('Email: %s', $user->getEmail()),
|
||||
sprintf('Display name: %s', $user->getName()),
|
||||
sprintf('Creation date: %s', $user->getCreatedAt()->format('Y-m-d H:i:s')),
|
||||
sprintf('Last login: %s', $user->getLastLogin() !== null ? $user->getLastLogin()->format('Y-m-d H:i:s') : 'never'),
|
||||
sprintf('2FA activated: %s', $user->isTwoFactorAuthentication() ? 'yes' : 'no'),
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue