(title: string)
| 600 | |
| 601 | export const cli = { |
| 602 | header(title: string): void { |
| 603 | const lines = title.split("\n"); |
| 604 | const maxLen = Math.max(...lines.map((l) => l.length), 58); |
| 605 | const border = "─".repeat(maxLen + 2); |
| 606 | |
| 607 | console.log(); |
| 608 | console.log(chalk.cyan(`┌${border}┐`)); |
| 609 | for (const line of lines) { |
| 610 | const padded = line.padEnd(maxLen); |
| 611 | console.log(chalk.cyan("│ ") + chalk.bold.white(padded) + chalk.cyan(" │")); |
| 612 | } |
| 613 | console.log(chalk.cyan(`└${border}┘`)); |
| 614 | console.log(); |
| 615 | }, |
| 616 | |
| 617 | section(title: string): void { |
| 618 | console.log(); |
nothing calls this directly
no outgoing calls
no test coverage detected