Skip to content

Commit 055ea4d

Browse files
committed
feat: Replace 'Back to menu?' confirmation with a 'What next?' rawlist prompt offering menu or exit options.
1 parent c27daaf commit 055ea4d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

bin/cli.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,19 @@ async function scopesInteractive() {
525525
}
526526

527527
async function backToMenu() {
528-
const { back } = await inquirer.prompt([
528+
const { action } = await inquirer.prompt([
529529
{
530-
type: 'confirm',
531-
name: 'back',
532-
message: 'Back to menu?',
533-
default: true
530+
type: 'rawlist',
531+
name: 'action',
532+
message: 'What next?',
533+
choices: [
534+
{ name: '← Back to menu', value: 'menu' },
535+
{ name: '👋 Exit', value: 'exit' }
536+
]
534537
}
535538
]);
536539

537-
if (back) {
540+
if (action === 'menu') {
538541
await interactiveMode(false);
539542
} else {
540543
exitAltScreen();

0 commit comments

Comments
 (0)