Skip to content

Commit 8c1432b

Browse files
committed
feat(command): Print a success message
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>
1 parent db12159 commit 8c1432b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

core/Command/Group/AddUser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6767
$output->writeln('<error>user not found</error>');
6868
return 1;
6969
}
70+
7071
$group->addUser($user);
72+
$output->writeln('<info>success</info>');
73+
7174
return 0;
7275
}
7376

core/Command/Group/RemoveUser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
6868
return 1;
6969
}
7070
$group->removeUser($user);
71+
72+
$output->writeln('<info>success</info>');
73+
7174
return 0;
7275
}
7376

0 commit comments

Comments
 (0)