(command, channel, outputText = '', outputLabel = 'Output')
| 470 | } |
| 471 | |
| 472 | function buildCommandSections(command, channel, outputText = '', outputLabel = 'Output') { |
| 473 | const sections = []; |
| 474 | const commandText = String(command || '').trim(); |
| 475 | const resultText = String(outputText || '').trim(); |
| 476 | if (commandText) { |
| 477 | sections.push(makeCodeSection(commandText, inferCodeLanguage(commandText, channel), 'Command')); |
| 478 | } |
| 479 | if (resultText) { |
| 480 | sections.push(makeCodeSection(resultText, inferCodeLanguage(resultText), outputLabel)); |
| 481 | } |
| 482 | return sections; |
| 483 | } |
| 484 | |
| 485 | function createDetailEntry({ |
| 486 | id, |
no test coverage detected