MCPcopy Index your code
hub / github.com/bombshell-dev/clack / formatInstructionFooter

Function formatInstructionFooter

packages/prompts/src/common.ts:77–84  ·  view source on GitHub ↗
(instructions: string[], hasGuide: boolean)

Source from the content-addressed store, hash-verified

75}
76
77export function formatInstructionFooter(instructions: string[], hasGuide: boolean): string[] {
78 const guidePrefix = hasGuide ? `${styleText('cyan', S_BAR)} ` : '';
79 const footerLines = [`${guidePrefix}${instructions.join(' • ')}`];
80 if (hasGuide) {
81 footerLines.push(styleText('cyan', S_BAR_END));
82 }
83 return footerLines;
84}

Callers 3

renderFunction · 0.85
renderFunction · 0.85
renderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected