(output: string)
| 15 | } |
| 16 | |
| 17 | function cleanCommandOutput(output: string): string { |
| 18 | return output |
| 19 | .replace(ANSI_ESCAPE_PATTERN, '') |
| 20 | .replace(LOOSE_ESCAPE_PATTERN, '') |
| 21 | .split('\n') |
| 22 | .map((line) => line.trimEnd()) |
| 23 | .filter((line) => line.trim() && !/^(│|├|╮|╯|●|◇|◒|◐|◓|◑|■)/.test(line.trim())) |
| 24 | .join('\n') |
| 25 | .trim(); |
| 26 | } |
| 27 | |
| 28 | function formatCommandErrorDetails(error: unknown): string[] { |
| 29 | const details: string[] = []; |
no outgoing calls
no test coverage detected