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.");