add showing all commands if prompt is whitespace(s)

This commit is contained in:
xxSeys1
2025-06-02 23:25:50 +02:00
parent 608839b6a5
commit c9fe9213b3
3 changed files with 26 additions and 3 deletions

View File

@@ -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;