File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -371,11 +371,11 @@ export async function installCommand(options: InstallOptions): Promise<void> {
371371 utility : 'Utility' ,
372372 } ;
373373 const byCategory = listTemplatesByCategory ( ) ;
374- const checklistChoices : Array < { name : string ; value : string ; checked ?: boolean } > = [ ] ;
374+ const checklistChoices : Array < Record < string , unknown > > = [ ] ;
375375
376376 for ( const [ category , templates ] of Object . entries ( byCategory ) ) {
377377 if ( templates . length === 0 ) continue ;
378- checklistChoices . push ( { name : `── ${ categoryNames [ category ] || category } ──` , value : `__sep_ ${ category } ` , checked : false } ) ;
378+ checklistChoices . push ( new inquirer . Separator ( `── ${ categoryNames [ category ] || category } ( ${ templates . length } ) ──` ) ) ;
379379 for ( const t of templates ) {
380380 checklistChoices . push ( {
381381 name : ` ${ chalk . yellow ( t . id ) } — ${ t . description } (${ t . trigger } ${ t . matcher ? ` / ${ t . matcher } ` : '' } )` ,
@@ -392,7 +392,7 @@ export async function installCommand(options: InstallOptions): Promise<void> {
392392 choices : checklistChoices ,
393393 pageSize : 20 ,
394394 } ] ) ;
395- selectedHookIds = selectedHooks . filter ( ( id : string ) => ! id . startsWith ( '__sep_' ) ) ;
395+ selectedHookIds = selectedHooks as string [ ] ;
396396 }
397397
398398 let hooksInstalled : string [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments