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,
{
for command in commands {
if command.subcommands.is_empty() {
names.push(format!("{}{}", prefix, command.qualified_name.clone()));
} else {
if !command.subcommands.is_empty() {
let old_len = prefix.len();
prefix.push_str(&command.qualified_name);
prefix.push(' ');