Skip to content

Commit 1a00c7a

Browse files
committed
[exoframe-cli] Expand config prompt by default, correctly handle abort
1 parent 9514bf6 commit 1a00c7a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

packages/exoframe-cli/src/handlers/config/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ export const configHandler = async (args) => {
5353
if (!nonInteractive) {
5454
const cfgPrompts = generateConfigPrompt(newConfig);
5555
const { prop } = await inquirer.prompt(cfgPrompts);
56+
if (prop === 'abort') {
57+
console.log(chalk.red('Aborted on user request'));
58+
return;
59+
}
5660
// create new prompt for specific prop chosen by user
5761
const propPrompts = configPrompts[prop](newConfig);
5862
const res = await inquirer.prompt(propPrompts);

packages/exoframe-cli/src/handlers/config/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ export const generateConfigPrompt = (config) => {
466466
name: 'prop',
467467
default: 'n',
468468
pageSize: 20,
469+
expanded: true,
469470
choices,
470471
},
471472
];

0 commit comments

Comments
 (0)