Skip to content

Commit d8fb29e

Browse files
committed
chore(deps): update ui.service.ts
1 parent 9243b4f commit d8fb29e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

apps/generator-cli/src/app/services/ui.service.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// import ora from 'ora'
22
import {Injectable} from '@nestjs/common';
3-
import prompt, {Separator} from 'inquirer';
43
import {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

Comments
 (0)