Function
renderRow
(label: string, value: string)
Source from the content-addressed store, hash-verified
| 293 | const width = 56 |
| 294 | |
| 295 | function renderRow(label: string, value: string): string { |
| 296 | const availableWidth = width - 1 |
| 297 | const paddingNeeded = availableWidth - label.length - value.length |
| 298 | const padding = Math.max(0, paddingNeeded) |
| 299 | return `│${label}${" ".repeat(padding)}${value} │` |
| 300 | } |
| 301 | |
| 302 | // Overview section |
| 303 | console.log("┌────────────────────────────────────────────────────────┐") |
Tested by
no test coverage detected