Add command groups to the help command autocomplete list

This commit is contained in:
2025-02-01 01:42:25 +00:00
parent 2bb565704e
commit 3444ebbe22

View File

@@ -32,9 +32,8 @@ where
R: RepositoryProvider, R: RepositoryProvider,
{ {
for command in commands { for command in commands {
if command.subcommands.is_empty() { names.push(format!("{}{}", prefix, command.qualified_name.clone()));
names.push(format!("{}{}", prefix, command.qualified_name.clone())); if !command.subcommands.is_empty() {
} else {
let old_len = prefix.len(); let old_len = prefix.len();
prefix.push_str(&command.qualified_name); prefix.push_str(&command.qualified_name);
prefix.push(' '); prefix.push(' ');