Rocky_Mountain_Vending/.pnpm-store/v10/files/ca/fea86dba009aa8b9612952909c1d4bfbac5ed1664153b1edb9104b84bca75651ed6be6d0ffda57f5f6cf5b2204ae2e90e590cd5d894d6b567a37e36654f608
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

33 lines
1.2 KiB
Text

'use strict';
module.exports = async(value, prompt, context = {}) => {
let { choices, multiple } = prompt.options;
let { size, submitted } = prompt.state;
let prefix = context.prefix || await prompt.prefix();
let separator = context.separator || await prompt.separator();
let message = context.message || await prompt.message();
// ? Select your favorite colors >
// ^ ^ ^
// prefix message separator
let promptLine = [prefix, message, separator].filter(Boolean).join(' ');
prompt.state.prompt = promptLine;
let header = context.header || await prompt.header();
let output = context.format || await prompt.format(value);
let help = context.help || await prompt.error() || await prompt.hint();
let body = context.body || await prompt.body();
let footer = context.footer || await prompt.footer();
if (output || !help) promptLine += ' ' + output;
if (help && !promptLine.includes(help)) promptLine += ' ' + help;
if (submitted && choices && multiple && !output && !body) {
promptLine += prompt.styles.danger('No items were selected');
}
prompt.clear(size);
prompt.write([header, promptLine, body, footer].filter(Boolean).join('\n'));
prompt.restore();
};