mdat-plugin-cli-help 2.1.1 → 2.1.2
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 +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1066,7 +1066,7 @@ function helpStringToObject(helpString) {
|
|
|
1066
1066
|
continue;
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
|
-
log.
|
|
1069
|
+
log.debug("Could not parse help string with any parser");
|
|
1070
1070
|
}
|
|
1071
1071
|
//#endregion
|
|
1072
1072
|
//#region src/utilities/get-help-markdown.ts
|
|
@@ -1084,7 +1084,7 @@ async function getHelpMarkdownInternal(executable, subcommands, helpFlag, depth)
|
|
|
1084
1084
|
const rawHelpString = await getHelpString(executable, [...subcommands, helpFlag]);
|
|
1085
1085
|
const programInfo = helpStringToObject(rawHelpString);
|
|
1086
1086
|
if (programInfo === void 0) {
|
|
1087
|
-
log.
|
|
1087
|
+
log.debug(`Falling back to basic cli help text output.`);
|
|
1088
1088
|
return renderHelpMarkdownBasic(rawHelpString);
|
|
1089
1089
|
}
|
|
1090
1090
|
return renderHelpMarkdownObject(executable, subcommands, helpFlag, depth, programInfo);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdat-plugin-cli-help",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Mdat plugin to generate tabular help documentation for CLI tools in Markdown files.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"markdown",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"@types/yargs": "^17.0.35",
|
|
50
50
|
"bumpp": "^11.0.1",
|
|
51
51
|
"commander": "^14.0.3",
|
|
52
|
-
"mdat": "^2.2.
|
|
52
|
+
"mdat": "^2.2.1",
|
|
53
53
|
"meow": "^14.1.0",
|
|
54
54
|
"tsdown": "^0.21.7",
|
|
55
55
|
"typescript": "~5.9.3",
|
|
56
|
-
"vitest": "^4.1.
|
|
56
|
+
"vitest": "^4.1.3",
|
|
57
57
|
"yargs": "^18.0.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|