@xmorse/cac 6.0.4 → 6.0.6
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/deno/Command.ts +3 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/deno/Command.ts
CHANGED
|
@@ -150,7 +150,9 @@ class Command {
|
|
|
150
150
|
sections.push({
|
|
151
151
|
title: 'Commands',
|
|
152
152
|
body: commands.map(command => {
|
|
153
|
-
|
|
153
|
+
// Only show first line of description in commands listing
|
|
154
|
+
const firstLine = command.description.split('\n')[0].trim();
|
|
155
|
+
return ` ${padRight(command.rawName, longestCommandName.length)} ${firstLine}`;
|
|
154
156
|
}).join('\n')
|
|
155
157
|
});
|
|
156
158
|
sections.push({
|
package/dist/index.js
CHANGED
|
@@ -358,7 +358,8 @@ class Command {
|
|
|
358
358
|
sections.push({
|
|
359
359
|
title: "Commands",
|
|
360
360
|
body: commands.map((command) => {
|
|
361
|
-
|
|
361
|
+
const firstLine = command.description.split("\n")[0].trim();
|
|
362
|
+
return ` ${padRight(command.rawName, longestCommandName.length)} ${firstLine}`;
|
|
362
363
|
}).join("\n")
|
|
363
364
|
});
|
|
364
365
|
sections.push({
|
package/dist/index.mjs
CHANGED
|
@@ -354,7 +354,8 @@ class Command {
|
|
|
354
354
|
sections.push({
|
|
355
355
|
title: "Commands",
|
|
356
356
|
body: commands.map((command) => {
|
|
357
|
-
|
|
357
|
+
const firstLine = command.description.split("\n")[0].trim();
|
|
358
|
+
return ` ${padRight(command.rawName, longestCommandName.length)} ${firstLine}`;
|
|
358
359
|
}).join("\n")
|
|
359
360
|
});
|
|
360
361
|
sections.push({
|