From 549139a8e7de890887ea1d94c2fb8df2e23208b9 Mon Sep 17 00:00:00 2001 From: Gorniaky Date: Tue, 28 Jul 2026 12:44:41 -0300 Subject: [PATCH] refactor(commands): improve command visibility check in documentation generation --- scripts/docs/generate/commands.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/docs/generate/commands.dart b/scripts/docs/generate/commands.dart index 5a4aff3..5d2e7f4 100644 --- a/scripts/docs/generate/commands.dart +++ b/scripts/docs/generate/commands.dart @@ -18,7 +18,7 @@ Future commands({ header = buffer.toString(); for (final command in runner.commands.values) { - if (command.hidden) continue; + if (command.hidden || !visited.add(command)) continue; buffer.writeln("- [${command.name}](${command.name}.md)");