Skip to content

Commit

Permalink
Pass commands to filter to recursive call
Browse files Browse the repository at this point in the history
  • Loading branch information
aeisenbarth committed Apr 3, 2024
1 parent e3970c1 commit bd77cb0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sphinx_click/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,16 @@ def _generate_nodes(
)
)
else:
commands = _filter_commands(ctx, commands)
for command in commands:
command_objs = _filter_commands(ctx, commands)
for command in command_objs:
parent = ctx if not semantic_group else ctx.parent
section.extend(
self._generate_nodes(
command.name, command, parent=parent, nested=nested
command.name,
command,
parent=parent,
nested=nested,
commands=commands,
)
)

Expand Down

0 comments on commit bd77cb0

Please sign in to comment.