MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / printBoxMessage

Function printBoxMessage

packages/db/code-migrations/helpers.ts:1–15  ·  view source on GitHub ↗
(title: string, lines: (string | unknown)[])

Source from the content-addressed store, hash-verified

1export 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
17export function getIsCluster() {
18 const args = process.argv;

Callers 7

upFunction · 0.90
upFunction · 0.90
upFunction · 0.90
upFunction · 0.90
upFunction · 0.90
migrateFunction · 0.90
runMigrationFunction · 0.90

Calls 1

logMethod · 0.45

Tested by

no test coverage detected