(p: CliProject)
| 572 | } |
| 573 | |
| 574 | function renderProjectText(p: CliProject): string { |
| 575 | return [ |
| 576 | `id: ${p.id}`, |
| 577 | `name: ${p.name}`, |
| 578 | `type: ${p.type}`, |
| 579 | `createdFrom: ${p.createdFrom}`, |
| 580 | `createdAt: ${p.createdAt}`, |
| 581 | `updatedAt: ${p.updatedAt}`, |
| 582 | ].join('\n'); |
| 583 | } |
| 584 | |
| 585 | function pad(s: string, width: number): string { |
| 586 | if (s.length >= width) return s; |