MCPcopy
hub / github.com/upstash/context7 / showPreview

Function showPreview

packages/cli/src/commands/generate.ts:415–429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 const remainingLines = contentLines.length - previewLineCount;
414
415 const showPreview = () => {
416 log.blank();
417 console.log(pc.dim("━".repeat(70)));
418 console.log(pc.bold(`Generated Skill: `) + pc.green(pc.bold(skillName)));
419 console.log(pc.dim("━".repeat(70)));
420 log.blank();
421 console.log(previewContent);
422 if (hasMoreLines) {
423 log.blank();
424 console.log(pc.dim(`... ${remainingLines} more lines`));
425 }
426 log.blank();
427 console.log(pc.dim("━".repeat(70)));
428 log.blank();
429 };
430
431 const openInEditor = async () => {
432 const previewDir = getPreviewsDir();

Callers 1

generateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected