Skip to content

Commit

Permalink
fix: toggle A all not working (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia authored Nov 10, 2023
1 parent e26d734 commit 9d80355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 <cwd>',
Expand Down Expand Up @@ -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.',
Expand Down

0 comments on commit 9d80355

Please sign in to comment.