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