MCPcopy Index your code
hub / github.com/codeaashu/claude-code / restoreHeredocs

Function restoreHeredocs

src/utils/bash/heredoc.ts:711–720  ·  view source on GitHub ↗
(
  parts: string[],
  heredocs: Map<string, HeredocInfo>,
)

Source from the content-addressed store, hash-verified

709 * @returns New array with placeholders replaced by original heredoc content
710 */
711export function restoreHeredocs(
712 parts: string[],
713 heredocs: Map<string, HeredocInfo>,
714): string[] {
715 if (heredocs.size === 0) {
716 return parts
717 }
718
719 return parts.map(part => restoreHeredocsInString(part, heredocs))
720}
721
722/**
723 * Checks if a command contains heredoc syntax.

Callers 2

Calls 1

restoreHeredocsInStringFunction · 0.85

Tested by

no test coverage detected