Add command groups to the help command autocomplete list
This commit is contained in:
@@ -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(' ');
|
||||||
|
|||||||
Reference in New Issue
Block a user