politty 0.4.10 → 0.4.11
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/docs/index.cjs +5 -2
- package/dist/docs/index.cjs.map +1 -1
- package/dist/docs/index.d.cts.map +1 -1
- package/dist/docs/index.d.ts.map +1 -1
- package/dist/docs/index.js +5 -2
- package/dist/docs/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{runner-DXmgHXNR.cjs → runner-BgW1XWJw.cjs} +6 -2
- package/dist/runner-BgW1XWJw.cjs.map +1 -0
- package/dist/{runner-BnBUkTvG.js → runner-JZRo4pYu.js} +6 -2
- package/dist/runner-JZRo4pYu.js.map +1 -0
- package/package.json +9 -9
- package/dist/runner-BnBUkTvG.js.map +0 -1
- package/dist/runner-DXmgHXNR.cjs.map +0 -1
package/dist/docs/index.cjs
CHANGED
|
@@ -339,8 +339,11 @@ function renderUnionOptionsMarkdown(extracted, style = "table") {
|
|
|
339
339
|
const option = unionOptions[i];
|
|
340
340
|
if (!option) continue;
|
|
341
341
|
const uniqueFields = option.fields.filter((f) => !commonFieldNames.has(f.name) && !f.positional);
|
|
342
|
-
if (uniqueFields.length === 0) continue;
|
|
343
342
|
const label = option.description ?? `Variant ${i + 1}`;
|
|
343
|
+
if (uniqueFields.length === 0) {
|
|
344
|
+
sections.push(`**${label}:**\n\n_no options_`);
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
344
347
|
const rendered = style === "table" ? renderOptionsTableFromArray(uniqueFields) : renderOptionsListFromArray(uniqueFields);
|
|
345
348
|
sections.push(`**${label}:**\n\n${rendered}`);
|
|
346
349
|
}
|
|
@@ -819,7 +822,7 @@ async function executeSingleExample(example, rootCommand, commandPath) {
|
|
|
819
822
|
collector.start();
|
|
820
823
|
let success = true;
|
|
821
824
|
try {
|
|
822
|
-
const { runCommand } = await Promise.resolve().then(() => require("../runner-
|
|
825
|
+
const { runCommand } = await Promise.resolve().then(() => require("../runner-BgW1XWJw.cjs")).then((n) => n.runner_exports);
|
|
823
826
|
const result = await runCommand(rootCommand, argv);
|
|
824
827
|
success = result.success;
|
|
825
828
|
if (!result.success && result.error) console.error(result.error.message);
|