(choices, margin, indentation)
| 69 | } |
| 70 | |
| 71 | function createChoiceUsages(choices, margin, indentation) { |
| 72 | const activeChoices = choices.filter((choice) => !choice.deprecated); |
| 73 | const threshold = |
| 74 | Math.max(0, ...activeChoices.map((choice) => choice.value.length)) + margin; |
| 75 | return activeChoices.map((choice) => |
| 76 | indent( |
| 77 | createOptionUsageRow(choice.value, choice.description, threshold), |
| 78 | indentation, |
| 79 | ), |
| 80 | ); |
| 81 | } |
| 82 | |
| 83 | function createOptionUsage(context, option, threshold) { |
| 84 | const header = createOptionUsageHeader(option); |
no test coverage detected
searching dependent graphs…