(header, content, threshold)
| 44 | } |
| 45 | |
| 46 | function createOptionUsageRow(header, content, threshold) { |
| 47 | const separator = |
| 48 | header.length >= threshold |
| 49 | ? `\n${" ".repeat(threshold)}` |
| 50 | : " ".repeat(threshold - header.length); |
| 51 | |
| 52 | const description = content.replaceAll("\n", `\n${" ".repeat(threshold)}`); |
| 53 | |
| 54 | return `${header}${separator}${description}`; |
| 55 | } |
| 56 | |
| 57 | function createOptionUsageType(option) { |
| 58 | switch (option.type) { |
no outgoing calls
no test coverage detected
searching dependent graphs…