@virmator/help 13.3.12 → 13.3.13
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/help-message.js +5 -4
- package/package.json +7 -6
package/dist/help-message.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { logColors,
|
|
1
|
+
import { check } from '@augment-vir/assert';
|
|
2
|
+
import { collapseWhiteSpace, getObjectTypedEntries, logColors, mapObjectValues, safeMatch, } from '@augment-vir/common';
|
|
3
|
+
import { toPosixPath } from '@augment-vir/node';
|
|
3
4
|
import { virmatorFlags, } from '@virmator/core';
|
|
4
5
|
/** Different syntaxes for each supported help message target environment. */
|
|
5
6
|
export var HelpMessageSyntax;
|
|
@@ -55,7 +56,7 @@ export const formats = {
|
|
|
55
56
|
[HelpMessageSyntax.Markdown]: '**',
|
|
56
57
|
},
|
|
57
58
|
unBold: {
|
|
58
|
-
[HelpMessageSyntax.Cli]: logColors
|
|
59
|
+
[HelpMessageSyntax.Cli]: logColors.normalWeight,
|
|
59
60
|
[HelpMessageSyntax.Markdown]: '**',
|
|
60
61
|
},
|
|
61
62
|
code: {
|
|
@@ -147,7 +148,7 @@ function commandDocToString(command, format, indentCount) {
|
|
|
147
148
|
exampleBlock,
|
|
148
149
|
configsBlock,
|
|
149
150
|
depsBlock,
|
|
150
|
-
].filter(isTruthy);
|
|
151
|
+
].filter(check.isTruthy);
|
|
151
152
|
return blocks.join('\n');
|
|
152
153
|
}
|
|
153
154
|
function combineHelpMessage(commandsText, format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/help",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.13",
|
|
4
4
|
"description": "Default help plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -31,13 +31,14 @@
|
|
|
31
31
|
"test:update": "npm test update"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@augment-vir/
|
|
35
|
-
"@augment-vir/
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
34
|
+
"@augment-vir/assert": "^30.0.4",
|
|
35
|
+
"@augment-vir/common": "^30.0.4",
|
|
36
|
+
"@augment-vir/node": "^30.0.4",
|
|
37
|
+
"@virmator/core": "^13.3.13"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@
|
|
40
|
+
"@augment-vir/test": "^30.0.4",
|
|
41
|
+
"@types/node": "^22.5.5",
|
|
41
42
|
"c8": "^10.1.2",
|
|
42
43
|
"istanbul-smart-text-reporter": "^1.1.4"
|
|
43
44
|
},
|