fix: toggle A all not working (#157)
This commit is contained in:
parent
e26d73416b
commit
9d8035566f
|
|
@ -33,7 +33,7 @@ export const add = new Command()
|
||||||
.name('add')
|
.name('add')
|
||||||
.description('add a component to your project')
|
.description('add a component to your project')
|
||||||
.argument('[components...]', 'the components to add')
|
.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('-o, --overwrite', 'overwrite existing files.', false)
|
||||||
.option(
|
.option(
|
||||||
'-c, --cwd <cwd>',
|
'-c, --cwd <cwd>',
|
||||||
|
|
@ -71,7 +71,7 @@ export const add = new Command()
|
||||||
: options.components
|
: options.components
|
||||||
if (!options.components?.length && !options.all) {
|
if (!options.components?.length && !options.all) {
|
||||||
const { components } = await prompts({
|
const { components } = await prompts({
|
||||||
type: 'autocompleteMultiselect',
|
type: 'multiselect',
|
||||||
name: 'components',
|
name: 'components',
|
||||||
message: 'Which components would you like to add?',
|
message: 'Which components would you like to add?',
|
||||||
hint: 'Space to select. A to toggle all. Enter to submit.',
|
hint: 'Space to select. A to toggle all. Enter to submit.',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user