Skip to content

Commit 1cf5563

Browse files
committed
Add [y/N] to confirmation prompts
1 parent 4e84a79 commit 1cf5563

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cli/app.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,10 @@ function (ConsoleCommandEvent $event) {
410410
}
411411

412412
$helper = $this->getHelperSet()->get('question');
413-
$question = new ConfirmationQuestion('Would you like to install Expose now? ', false);
413+
$question = new ConfirmationQuestion('Would you like to install Expose now? [y/N] ', false);
414414

415415
if (false === $helper->ask($input, $output, $question)) {
416+
info('Proceeding without installing Expose.');
416417
return;
417418
}
418419

@@ -423,9 +424,10 @@ function (ConsoleCommandEvent $event) {
423424

424425
if (! Ngrok::installed()) {
425426
$helper = $this->getHelperSet()->get('question');
426-
$question = new ConfirmationQuestion('Would you like to install ngrok now? ', false);
427+
$question = new ConfirmationQuestion('Would you like to install ngrok now? [y/N] ', false);
427428

428429
if (false === $helper->ask($input, $output, $question)) {
430+
info('Proceeding without installing ngrok.');
429431
return;
430432
}
431433

@@ -526,7 +528,7 @@ function (ConsoleCommandEvent $event) {
526528
if ($force) {
527529
warning('YOU ARE ABOUT TO UNINSTALL Nginx, PHP, Dnsmasq and all Valet configs and logs.');
528530
$helper = $this->getHelperSet()->get('question');
529-
$question = new ConfirmationQuestion('Are you sure you want to proceed? ', false);
531+
$question = new ConfirmationQuestion('Are you sure you want to proceed? [y/N]', false);
530532

531533
if (false === $helper->ask($input, $output, $question)) {
532534
return warning('Uninstall aborted.');

0 commit comments

Comments
 (0)