From c924cd3c6b052f06532730decfbba52a2315097e Mon Sep 17 00:00:00 2001 From: Manu Hernandez Date: Tue, 13 Feb 2024 00:35:31 -0400 Subject: [PATCH] rename showcase folder --- beach-breach | 1 - src/flows/inspect-game.js | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) delete mode 160000 beach-breach diff --git a/beach-breach b/beach-breach deleted file mode 160000 index c6259b1..0000000 --- a/beach-breach +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c6259b13bb15f532775c8fe8d412719f3e518f78 diff --git a/src/flows/inspect-game.js b/src/flows/inspect-game.js index 0a4b69b..df6f4be 100644 --- a/src/flows/inspect-game.js +++ b/src/flows/inspect-game.js @@ -1,4 +1,4 @@ -import { select } from "@inquirer/prompts"; +import { input, select } from "@inquirer/prompts"; import { log, success, textGray, textBlue, printLine } from "../console.js"; import { printSupport, slugify } from "../utils.js"; import cloneRepo from "../actions/clone-repo.js"; @@ -167,7 +167,13 @@ export async function inspectGame() { choices: GAMES, }); const game = GAMES.find((game) => game.value === gameValue); - const targetFolder = slugify(game.title); + let targetFolder = slugify( + await input({ + message: "Target folder:", + transformer: slugify, + }) + ); + if (!targetFolder) targetFolder = slugify(game.title); const repoCloned = cloneRepo(game.source, targetFolder); if (!repoCloned) { console.error("Unable to clone repo."); -- 2.51.2