@bemoje/cli 0.1.3 → 0.1.4
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.
|
@@ -19,7 +19,7 @@ const commanderBackRefs_1 = require("./commanderBackRefs");
|
|
|
19
19
|
const CommandFeatureSelector_1 = require("./CommandFeatureSelector");
|
|
20
20
|
const DefaultHelpConfig_1 = require("./DefaultHelpConfig");
|
|
21
21
|
const is_1 = require("@bemoje/is");
|
|
22
|
-
const
|
|
22
|
+
const node_1 = require("@bemoje/node");
|
|
23
23
|
const extra_typings_2 = require("@commander-js/extra-typings");
|
|
24
24
|
const is_2 = require("@bemoje/is");
|
|
25
25
|
const is_3 = require("@bemoje/is");
|
|
@@ -262,7 +262,7 @@ class CommandBuilder {
|
|
|
262
262
|
}
|
|
263
263
|
return [command, description ?? ''];
|
|
264
264
|
});
|
|
265
|
-
this.description(this.$.description() + '\n\n' + 'Usage Examples:\n' + (0,
|
|
265
|
+
this.description(this.$.description() + '\n\n' + 'Usage Examples:\n' + (0, node_1.formatTableForTerminal)(table));
|
|
266
266
|
return this;
|
|
267
267
|
}
|
|
268
268
|
errorHandler(fn) {
|
|
@@ -936,7 +936,7 @@ class CommandBuilder {
|
|
|
936
936
|
row[0] = arr.map(ansi_colors_1.default.dim).concat(col(last)).join(' ');
|
|
937
937
|
return row;
|
|
938
938
|
});
|
|
939
|
-
let result = (0,
|
|
939
|
+
let result = (0, node_1.formatTableForTerminal)(ansi, ['Command', 'Summary']);
|
|
940
940
|
if (opts.noBorders) {
|
|
941
941
|
result = result
|
|
942
942
|
.replace(/[├┼┤┐┘└┌┬┴│─]/g, '')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bemoje/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"types": "cjs/index.d.ts",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@bemoje/function": "latest",
|
|
12
12
|
"@bemoje/is": "latest",
|
|
13
13
|
"@bemoje/jsondb": "latest",
|
|
14
|
+
"@bemoje/node": "latest",
|
|
14
15
|
"@bemoje/object": "latest",
|
|
15
16
|
"@bemoje/os": "latest",
|
|
16
17
|
"@bemoje/parse": "latest",
|
|
17
18
|
"@bemoje/string": "latest",
|
|
18
19
|
"@bemoje/types": "latest",
|
|
19
|
-
"@bemoje/util": "latest",
|
|
20
20
|
"@commander-js/extra-typings": "^11.1.0",
|
|
21
21
|
"ansi-colors": "^4.1.3",
|
|
22
22
|
"fs-extra": "^11.2.0",
|