From 9d8035566f8ddf4ea239c49bf38248e5013748ec Mon Sep 17 00:00:00 2001 From: zernonia <59365435+zernonia@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:21:46 +0800 Subject: [PATCH] fix: toggle A all not working (#157) --- packages/cli/src/commands/add.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/commands/add.ts b/packages/cli/src/commands/add.ts index 29a301ed..4abeaa74 100644 --- a/packages/cli/src/commands/add.ts +++ b/packages/cli/src/commands/add.ts @@ -33,7 +33,7 @@ export const add = new Command() .name('add') .description('add a component to your project') .argument('[components...]', 'the components to add') - .option('-y, --yes', 'skip confirmation prompt.', false) + .option('-y, --yes', 'skip confirmation prompt.', true) .option('-o, --overwrite', 'overwrite existing files.', false) .option( '-c, --cwd ', @@ -71,7 +71,7 @@ export const add = new Command() : options.components if (!options.components?.length && !options.all) { const { components } = await prompts({ - type: 'autocompleteMultiselect', + type: 'multiselect', name: 'components', message: 'Which components would you like to add?', hint: 'Space to select. A to toggle all. Enter to submit.',