add showing all commands if prompt is whitespace(s)
This commit is contained in:
@@ -435,6 +435,17 @@ void DebugCommands::InitAsync()
|
||||
AsyncTask = Task::StartNew(InitCommands);
|
||||
}
|
||||
|
||||
void DebugCommands::GetAllCommands(Array<StringView>& commands)
|
||||
{
|
||||
EnsureInited();
|
||||
ScopeLock lock(Locker);
|
||||
|
||||
for (auto& command : Commands)
|
||||
{
|
||||
commands.Add(command.Name);
|
||||
}
|
||||
}
|
||||
|
||||
DebugCommands::CommandFlags DebugCommands::GetCommandFlags(StringView command)
|
||||
{
|
||||
CommandFlags result = CommandFlags::None;
|
||||
|
||||
Reference in New Issue
Block a user