chore(setup): adicionar banner ASCII do logo e corrigir script db:extensions

Substitui o header simples pelo logo em ASCII art na cor primária
(laranja) com nome e tagline centralizados. Corrige chamada
db:enableExtensions → db:extensions após renomeio do script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-03-29 13:55:26 +00:00
parent 519b673ae5
commit 3476fda4db

View File

@@ -21,6 +21,7 @@ const c = {
red: "\x1b[31m",
yellow: "\x1b[33m",
cyan: "\x1b[36m",
orange: "\x1b[38;5;214m",
};
const sym = {
@@ -81,10 +82,34 @@ function abort(msg) {
// ─── Header ──────────────────────────────────────────────────────────────────
console.log(`
${c.bold}${c.cyan} OpenMonetis — Setup${c.reset}
${c.dim}Gestão financeira self-hosted${c.reset}
`);
const logoLines = [
".............................+@@@@@@@@@@=.............................",
".............................#@@@@@@@@@@-.............................",
".............................@@@@@@@@@@@:.............................",
"....................@@%:.....@@@@@@@@@@%......:@@-....................",
"...................+@@@@@@*-:@@@@@@@@@@%...=@@@@@@-...................",
"..................:@@@@@@@@@@@@@@@@@@@@@*@@@@@@@@@@:..................",
"..................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%..................",
".................#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.................",
"................=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@+................",
"................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%+:....................",
"...................-=+%@@@@@@@@@@@@@@@@@@@@@*:........................",
"........................:@@@@@@@@@@@@@@@@@@@@%........................",
".......................#@@@@@@@@@@@@@@@@@@@@@@@+......................",
".....................-@@@@@@@@@@@@@@@@@@@@@@@@@@@+....................",
"....................%@@@@@@@@@@@@@%#@@@@@@@@@@@@*.....................",
"..................-@@@@@@@@@@@@@@=..:@@@@@@@@@@-......................",
"....................+@@@@@@@@@@@......*@@@@@@#........................",
".......................#@@@@@@*........:@@@@-.........................",
".........................:#@@=...........+#...........................",
];
console.log();
for (const line of logoLines) {
console.log(c.orange + line.replaceAll(".", " ") + c.reset);
}
console.log(`\n${" ".repeat(29)}${c.bold}OpenMonetis${c.reset}`);
console.log(`${" ".repeat(19)}${c.dim}Gestão financeira · self-hosted${c.reset}\n`);
// ─── ETAPA 1: Verificações do sistema ────────────────────────────────────────
@@ -329,7 +354,7 @@ if (useLocalDocker) {
// Extensões
s = spinner("Habilitando extensões do banco...");
try {
run("pnpm db:enableExtensions", { cwd: targetDir });
run("pnpm db:extensions", { cwd: targetDir });
s.stop("Extensões habilitadas");
} catch {
s.fail("Falha ao habilitar extensões");