UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

22 lines 606 B
#!/usr/bin/env node import { ask, text } from "../src/index.js"; import { logResult } from "../src/utils/logging.js"; const flow = async () => { return { type: await text({ label: "Type" }), framework: await text({ label: "Framework" }), typescript: await text({ label: "TypeScript" }), template: await text({ label: "Template" }), }; }; (async () => { try { const result = await ask(flow); logResult(result); } catch (error) { console.error("Error:", error); process.exit(1); } })(); //# sourceMappingURL=basic.js.map