Format grep search results based on output mode.
formatGrepResults(
results: Record<string, [number, string][]>,
outputMode: "content" | "files_with_matches" | "count"
): string| Name | Type | Description |
|---|---|---|
results* | Record<string, [number, string][]> | Dictionary mapping file paths to list of [line_num, line_content] tuples |
outputMode* | "content" | "files_with_matches" | "count" | Output format - "files_with_matches", "content", or "count" |