Skip to content

Commit

Permalink
feat(command): Print a success message
Browse files Browse the repository at this point in the history
Inform the end-user when he/she add or remove user from a group with the
occ command.

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
  • Loading branch information
zak39 committed Mar 21, 2024
1 parent db12159 commit 8c1432b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/Command/Group/AddUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('<error>user not found</error>');
return 1;
}

$group->addUser($user);
$output->writeln('<info>success</info>');

return 0;
}

Expand Down
3 changes: 3 additions & 0 deletions core/Command/Group/RemoveUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
return 1;
}
$group->removeUser($user);

$output->writeln('<info>success</info>');

return 0;
}

Expand Down

0 comments on commit 8c1432b

Please sign in to comment.