Function
printBoxMessage
(title: string, lines: (string | unknown)[])
Source from the content-addressed store, hash-verified
| 1 | export function printBoxMessage(title: string, lines: (string | unknown)[]) { |
| 2 | console.log('┌──┐'); |
| 3 | console.log('│'); |
| 4 | if (title) { |
| 5 | console.log(`│ ${title}`); |
| 6 | if (lines.length) { |
| 7 | console.log('│'); |
| 8 | } |
| 9 | } |
| 10 | lines.forEach((line) => { |
| 11 | console.log(`│ ${line}`); |
| 12 | }); |
| 13 | console.log('│'); |
| 14 | console.log('└──┘'); |
| 15 | } |
| 16 | |
| 17 | export function getIsCluster() { |
| 18 | const args = process.argv; |
Tested by
no test coverage detected