Skip to content

Commit 043737f

Browse files
committed
Forcing the process to exit
1 parent 97129c4 commit 043737f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/cli.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ module.exports = async (argvs) => {
6060
throw new Error(err);
6161
} finally {
6262
await fs.remove(tempDir);
63+
process.exit();
6364
}
6465
};
6566

@@ -103,19 +104,14 @@ const onLoad = async (targetDir, version, argv) => {
103104
let lang = argv.lang;
104105
/* istanbul ignore if */
105106
if (!lang) {
106-
let { langChoice } = await prompts({
107-
type: "autocomplete",
107+
let langChoice = await prompts({
108+
type: "select",
108109
name: "langChoice",
109110
message: "Select language",
110111
choices: langListOut,
111-
suggest: /* istanbul ignore next */ async (input, choices) => {
112-
return fuzzy
113-
.filter(input, choices, { extract: (el) => el.title })
114-
.map((v) => v.original);
115-
},
116112
});
117113
if (langChoice === "custom") {
118-
let { customLang } = await prompts({
114+
let customLang = await prompts({
119115
type: "text",
120116
name: "customLang",
121117
message: "Enter custom language code",

0 commit comments

Comments
 (0)