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.
@@ -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-DXmgHXNR.cjs")).then((n) => n.runner_exports);
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);