UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

23 lines (21 loc) 1.08 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f243e37f-3781-5361-8858-fdd0d49944c2")}catch(e){}}(); import inquirer from "inquirer"; import { colorize } from "./ui.js"; export async function promptConfirmation(messageText, options) { const response = await inquirer.prompt([ { default: options?.defaultValue ?? true, message: colorize(messageText, "blue"), name: "confirmed", type: "confirm", }, ]); return response.confirmed; } export function resolvePromptText(preset, customPrompt) { if (preset === "Custom") return customPrompt ?? ""; return "Create a component gallery using our design system that showcases core components and key states so we can quickly validate component understanding."; } //# sourceMappingURL=prompts.js.map //# debugId=f243e37f-3781-5361-8858-fdd0d49944c2