Skip to content

Commit

Permalink
Enhance CLI setup command.
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Aug 27, 2024
1 parent 8ac3f83 commit e388b1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nestia",
"version": "5.7.0",
"version": "5.8.0-dev.20240827-2",
"description": "Nestia CLI tool",
"main": "bin/index.js",
"bin": {
Expand Down
10 changes: 6 additions & 4 deletions packages/cli/src/internal/ArgumentParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ export namespace ArgumentParser {
);
pack.manager = options.manager;
options.project ??= await configure();
options.swagger = options.swagger
? (options.swagger as any) === "true"
: (await select("swagger")("Transform Runtime Swagger")(["Y", "N"])) ===
"Y";
options.swagger =
((options.swagger as string | undefined) ??
(await select("swagger")("Transform Runtime Swagger")([
"true",
"false",
]))) === "true";

if (questioned.value) console.log("");
return options as IArguments;
Expand Down

0 comments on commit e388b1e

Please sign in to comment.