UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

16 lines (15 loc) 467 B
import { re } from "@reliverse/relico"; import { cancel, confirm, isCancel } from "@reliverse/rempts"; import { DEFAULT_CONFIG } from "../constants.js"; export async function getGitChoice(git) { if (git !== void 0) return git; const response = await confirm({ message: "Initialize git repository?", initialValue: DEFAULT_CONFIG.git }); if (isCancel(response)) { cancel(re.red("Operation cancelled")); process.exit(0); } return response; }