Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit c76bd48

Browse files
committed
Tweak no-interaction PR with defaults
1 parent 7ba6bc6 commit c76bd48

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Commands/Import.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,11 @@ public function handle()
7777
$this->info("Found {$count} user(s).");
7878
}
7979

80-
$interactive = ! $this->option('no-interaction');
81-
82-
if (!$interactive || $this->confirm('Would you like to display the user(s) to be imported / synchronized?')) {
80+
if ($this->confirm('Would you like to display the user(s) to be imported / synchronized?', $default = false)) {
8381
$this->display($users);
8482
}
8583

86-
if (!$interactive || $this->confirm('Would you like these users to be imported / synchronized?',
87-
$default = true)) {
84+
if ($this->confirm('Would you like these users to be imported / synchronized?', $default = true)) {
8885
$imported = $this->import($users);
8986

9087
$this->info("Successfully imported / synchronized {$imported} user(s).");

0 commit comments

Comments
 (0)