26 std::istringstream stream(line);
27 std::string command_name;
28 stream >> command_name;
30 if (
auto it = commands.find(command_name); it != commands.end())
32 return it->second(line.substr(command_name.length() + 1));
40 if (
auto it = commands.find(name); it != commands.end())
std::string interpret(const std::string &line) const
Interprets a command line as a function invocation.
void unregister_command(const std::string &name)
Unregisters a command from the CLI.
Debugging functions and classes.