public function handle()
{
$users = $this->getUsers();
$count = count($users);
if ($count === 1) {
$this->info("Found user '{$users[0]->getCommonName()}'.");
} else {
$this->info("Found {$count} user(s).");
}
if ($this->confirm('Would you like to display the user(s) to be imported / synchronized?')) {
$this->display($users);
}
if ($this->confirm('Would you like these users to be imported / synchronized?')) {
$this->info("\nSuccessfully imported / synchronized {$this->import($users)} user(s).");
} else {
$this->info('Okay, no users were imported / synchronized.');
}
}