(matrix)
| 42 | } |
| 43 | |
| 44 | function renderMatrix(matrix) { |
| 45 | const lines = []; |
| 46 | lines.push('Sandbox Provider Matrix'); |
| 47 | lines.push('='.repeat(40)); |
| 48 | for (const provider of matrix) { |
| 49 | lines.push(provider.provider); |
| 50 | for (const [operation, entry] of Object.entries(provider.capabilities)) { |
| 51 | lines.push(` ${operation.padEnd(8)} ${entry.supported ? 'yes' : 'no '} - ${entry.note}`); |
| 52 | } |
| 53 | } |
| 54 | return `${lines.join('\n')}\n`; |
| 55 | } |
| 56 | |
| 57 | function renderObject(title, value) { |
| 58 | const lines = []; |