MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getDefaultSuccessMessage

Function getDefaultSuccessMessage

cli/src/utils/clipboard.ts:70–77  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

68}
69
70function getDefaultSuccessMessage(text: string): string | null {
71 const preview = text.replace(/\s+/g, ' ').trim()
72 if (!preview) {
73 return null
74 }
75 const truncated = preview.length > 40 ? `${preview.slice(0, 37)}…` : preview
76 return `Copied: "${truncated}"`
77}
78
79export interface CopyToClipboardOptions {
80 successMessage?: string | null

Callers 1

copyTextToClipboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected