Improved non-interactive command support (#1824)
The following commands no longer need confirmation when the input is not interactive: - server:bulk-power - server:reinstall
This commit is contained in:
parent
f9ec96c70a
commit
bf6da15fba
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ class BulkPowerActionCommand extends Command
|
|||
}
|
||||
|
||||
$count = $this->repository->getServersForPowerActionCount($servers, $nodes);
|
||||
if (! $this->confirm(trans('command/messages.server.power.confirm', ['action' => $action, 'count' => $count]))) {
|
||||
if (! $this->confirm(trans('command/messages.server.power.confirm', ['action' => $action, 'count' => $count])) && $this->input->isInteractive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class BulkReinstallActionCommand extends Command
|
|||
{
|
||||
$servers = $this->getServersToProcess();
|
||||
|
||||
if (! $this->confirm(trans('command/messages.server.reinstall.confirm'))) {
|
||||
if (! $this->confirm(trans('command/messages.server.reinstall.confirm')) && $this->input->isInteractive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue