UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk without cli. @reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

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