( stdout: string, stderr: string, inline = false, )
| 162 | } |
| 163 | |
| 164 | function formatBashOutput( |
| 165 | stdout: string, |
| 166 | stderr: string, |
| 167 | inline = false, |
| 168 | ): string { |
| 169 | const parts: string[] = [] |
| 170 | |
| 171 | if (stdout.trim()) { |
| 172 | parts.push(stdout.trim()) |
| 173 | } |
| 174 | |
| 175 | if (stderr.trim()) { |
| 176 | if (inline) { |
| 177 | parts.push(`[stderr: ${stderr.trim()}]`) |
| 178 | } else { |
| 179 | parts.push(`[stderr]\n${stderr.trim()}`) |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | return parts.join(inline ? ' ' : '\n') |
| 184 | } |
no outgoing calls
no test coverage detected