BaseCommand should only fulfill tab complete of its own scope

This commit is contained in:
Ben Woo
2025-10-15 20:03:06 +08:00
parent bd7d26a015
commit 0d89c8f8ea
@@ -643,6 +643,9 @@ public abstract class BaseCommand {
final List<String> cmds = new ArrayList<>();
if (search != null) {
for (RegisteredCommand<?> command : search.commands) {
if (command.scope != this) {
continue;
}
cmds.addAll(completeCommand(issuer, command, search.args, commandLabel, isAsync));
}
}