alex-c-line 1.30.0 → 1.30.1

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.cjs CHANGED
@@ -100,12 +100,13 @@ function centerLine(text, width) {
100
100
  //#endregion
101
101
  //#region src/utility/miscellaneous/createAlexCLineArtwork.ts
102
102
  async function createAlexCLineArtwork(options) {
103
- const { includeColors = true, subtitleColor = chalk.default.green, subtitleText = "say my name and I'll assist ✓" } = options ?? {};
103
+ const { includeBox = true, includeColors = true, subtitleColor = chalk.default.green, subtitleText = "say my name and I'll assist ✓" } = options ?? {};
104
104
  const title = await (0, figlet.default)("alex-c-line");
105
105
  const subtitle = centerLine(subtitleText, Math.max(...title.split("\n").map((line) => {
106
106
  return line.length;
107
107
  })));
108
- return (0, boxen.default)(includeColors ? [chalk.default.yellow(title), subtitleColor(subtitle)].join("\n") : [title, subtitle].join("\n"), {
108
+ const output = includeColors ? [chalk.default.yellow(title), subtitleColor(subtitle)].join("\n") : [title, subtitle].join("\n");
109
+ return includeBox ? (0, boxen.default)(output, {
109
110
  padding: {
110
111
  top: 1,
111
112
  bottom: 1,
@@ -114,7 +115,7 @@ async function createAlexCLineArtwork(options) {
114
115
  },
115
116
  borderStyle: "round",
116
117
  borderColor: "cyanBright"
117
- });
118
+ }) : output;
118
119
  }
119
120
 
120
121
  //#endregion
@@ -127,11 +128,17 @@ function artwork(program) {
127
128
  }[subtitleColor];
128
129
  }).option("--save-png [fileName]", "Save the artwork as a PNG file, optionally specifying the path").action(async ({ savePng: fileName, subtitleText, subtitleColor }) => {
129
130
  console.info(await createAlexCLineArtwork({
131
+ includeBox: true,
130
132
  includeColors: true,
131
133
  subtitleText,
132
134
  subtitleColor
133
135
  }));
134
- if (fileName) await asciiToPng(await createAlexCLineArtwork({ includeColors: false }), {
136
+ if (fileName) await asciiToPng(await createAlexCLineArtwork({
137
+ includeBox: false,
138
+ includeColors: false,
139
+ subtitleText,
140
+ subtitleColor
141
+ }), {
135
142
  fileName: typeof fileName === "string" ? fileName : void 0,
136
143
  fontSize: 90
137
144
  });
@@ -1304,7 +1311,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1304
1311
  //#endregion
1305
1312
  //#region package.json
1306
1313
  var name = "alex-c-line";
1307
- var version = "1.30.0";
1314
+ var version = "1.30.1";
1308
1315
  var description = "Command-line tool with commands to streamline the developer workflow.";
1309
1316
 
1310
1317
  //#endregion
package/dist/index.js CHANGED
@@ -62,12 +62,13 @@ function centerLine(text, width) {
62
62
  //#endregion
63
63
  //#region src/utility/miscellaneous/createAlexCLineArtwork.ts
64
64
  async function createAlexCLineArtwork(options) {
65
- const { includeColors = true, subtitleColor = chalk.green, subtitleText = "say my name and I'll assist ✓" } = options ?? {};
65
+ const { includeBox = true, includeColors = true, subtitleColor = chalk.green, subtitleText = "say my name and I'll assist ✓" } = options ?? {};
66
66
  const title = await figlet("alex-c-line");
67
67
  const subtitle = centerLine(subtitleText, Math.max(...title.split("\n").map((line) => {
68
68
  return line.length;
69
69
  })));
70
- return boxen(includeColors ? [chalk.yellow(title), subtitleColor(subtitle)].join("\n") : [title, subtitle].join("\n"), {
70
+ const output = includeColors ? [chalk.yellow(title), subtitleColor(subtitle)].join("\n") : [title, subtitle].join("\n");
71
+ return includeBox ? boxen(output, {
71
72
  padding: {
72
73
  top: 1,
73
74
  bottom: 1,
@@ -76,7 +77,7 @@ async function createAlexCLineArtwork(options) {
76
77
  },
77
78
  borderStyle: "round",
78
79
  borderColor: "cyanBright"
79
- });
80
+ }) : output;
80
81
  }
81
82
 
82
83
  //#endregion
@@ -89,11 +90,17 @@ function artwork(program) {
89
90
  }[subtitleColor];
90
91
  }).option("--save-png [fileName]", "Save the artwork as a PNG file, optionally specifying the path").action(async ({ savePng: fileName, subtitleText, subtitleColor }) => {
91
92
  console.info(await createAlexCLineArtwork({
93
+ includeBox: true,
92
94
  includeColors: true,
93
95
  subtitleText,
94
96
  subtitleColor
95
97
  }));
96
- if (fileName) await asciiToPng(await createAlexCLineArtwork({ includeColors: false }), {
98
+ if (fileName) await asciiToPng(await createAlexCLineArtwork({
99
+ includeBox: false,
100
+ includeColors: false,
101
+ subtitleText,
102
+ subtitleColor
103
+ }), {
97
104
  fileName: typeof fileName === "string" ? fileName : void 0,
98
105
  fontSize: 90
99
106
  });
@@ -1266,7 +1273,7 @@ function parseZodSchemaForProgram(programError, schema, data) {
1266
1273
  //#endregion
1267
1274
  //#region package.json
1268
1275
  var name = "alex-c-line";
1269
- var version = "1.30.0";
1276
+ var version = "1.30.1";
1270
1277
  var description = "Command-line tool with commands to streamline the developer workflow.";
1271
1278
 
1272
1279
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alex-c-line",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "description": "Command-line tool with commands to streamline the developer workflow.",
5
5
  "repository": {
6
6
  "type": "git",