11// import ora from 'ora'
22import { Injectable } from '@nestjs/common' ;
3- import prompt , { Separator } from 'inquirer' ;
43import { getTable } from 'console.table'
54
65@Injectable ( )
@@ -23,15 +22,15 @@ export class UIService {
2322 name : config . name ,
2423 message : config . message ,
2524 choices : [
26- new Separator ( header ) ,
27- new Separator ( separator ) ,
25+ new inquirer . Separator ( header ) ,
26+ new inquirer . Separator ( separator ) ,
2827 ...rows . map ( ( name : string , index : number ) => ( {
2928 name,
3029 short : config . rows [ index ] . short ,
3130 value : config . rows [ index ] . value ,
3231 } ) ) ,
33- new Separator ( separator ) ,
34- new Separator ( ' ' . repeat ( separator . length ) ) ,
32+ new inquirer . Separator ( separator ) ,
33+ new inquirer . Separator ( ' ' . repeat ( separator . length ) ) ,
3534 ] ,
3635 } )
3736 }
@@ -44,10 +43,10 @@ export class UIService {
4443
4544 const separatorCount = config
4645 . choices
47- . filter ( ( c ) => c instanceof Separator )
46+ . filter ( ( c ) => c instanceof inquirer . Separator )
4847 . length
4948
50- const res = await prompt ( [ {
49+ const res = await inquirer . prompt ( [ {
5150 type : 'list' ,
5251 name : config . name ,
5352 pageSize : process . stdout . rows - separatorCount - 1 ,
0 commit comments