UNPKG

legal-markdown-js

Version:

Node.js implementation of LegalMarkdown for processing legal documents with markdown and YAML - Complete feature parity with Ruby version

26 lines 951 B
/** * @fileoverview Output format selection prompt for Interactive CLI */ import { checkbox } from '@inquirer/prompts'; /** * Prompt user to select output formats */ export async function selectOutputFormats() { const selectedFormats = await checkbox({ message: 'Select output formats:', choices: [ { name: '🌐 HTML', value: 'html' }, { name: '📄 PDF', value: 'pdf', checked: true }, // Default selected { name: '📝 Markdown', value: 'markdown' }, { name: '📊 Export metadata (YAML/JSON)', value: 'metadata' }, ], required: true, // This ensures at least one option is selected }); return { html: selectedFormats.includes('html'), pdf: selectedFormats.includes('pdf'), markdown: selectedFormats.includes('markdown'), metadata: selectedFormats.includes('metadata'), }; } //# sourceMappingURL=output-format.js.map