ccgather 1.3.13 → 1.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,7 +509,7 @@ function getVersion() {
|
|
|
509
509
|
const pkg2 = JSON.parse((0, import_fs.readFileSync)(pkgPath, "utf-8"));
|
|
510
510
|
return pkg2.version;
|
|
511
511
|
} catch {
|
|
512
|
-
return "1.3.
|
|
512
|
+
return "1.3.14";
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
var VERSION = getVersion();
|
|
@@ -573,7 +573,7 @@ var box = {
|
|
|
573
573
|
leftT: "\u251C",
|
|
574
574
|
rightT: "\u2524"
|
|
575
575
|
};
|
|
576
|
-
var HEADER_WIDTH =
|
|
576
|
+
var HEADER_WIDTH = 46;
|
|
577
577
|
function centerText(text, width) {
|
|
578
578
|
const len = stripAnsi(text).length;
|
|
579
579
|
const pad = width - len;
|
|
@@ -589,10 +589,13 @@ function createProfessionalHeader() {
|
|
|
589
589
|
const v = boxRound.vertical;
|
|
590
590
|
const h = boxRound.horizontal;
|
|
591
591
|
lines.push(colors.dim(` ${boxRound.topLeft}${h.repeat(HEADER_WIDTH)}${boxRound.topRight}`));
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
592
|
+
const logoLines = [
|
|
593
|
+
` ${colors.primary("\u2588\u2580\u2580 \u2588\u2580\u2580")}${colors.secondary(" \u2588\u2580\u2580 \u2584\u2580\u2588 \u2580\u2588\u2580 \u2588\u2591\u2588 \u2588\u2580\u2580 \u2588\u2580\u2588")} `,
|
|
594
|
+
` ${colors.primary("\u2588\u2584\u2584 \u2588\u2584\u2584")}${colors.secondary(" \u2588\u2584\u2588 \u2588\u2580\u2588 \u2591\u2588\u2591 \u2588\u2580\u2588 \u2588\u2588\u2584 \u2588\u2580\u2584")} `
|
|
595
|
+
];
|
|
596
|
+
for (const l of logoLines) {
|
|
597
|
+
lines.push(colors.dim(` ${v}`) + centerText(l, HEADER_WIDTH) + colors.dim(v));
|
|
598
|
+
}
|
|
596
599
|
const versionText = colors.dim(`v${VERSION}`);
|
|
597
600
|
lines.push(colors.dim(` ${v}`) + rightAlignText(versionText, HEADER_WIDTH - 1) + " " + colors.dim(v));
|
|
598
601
|
lines.push(colors.dim(` ${boxRound.leftT}${h.repeat(HEADER_WIDTH)}${boxRound.rightT}`));
|