Searched refs:cmd_name (Results 1 – 4 of 4) sorted by relevance
50 void RegisterCommand(const std::string& cmd_name, in RegisterCommand() argument52 CommandMap().insert(std::make_pair(cmd_name, callback)); in RegisterCommand()55 void UnRegisterCommand(const std::string& cmd_name) { in UnRegisterCommand() argument56 CommandMap().erase(cmd_name); in UnRegisterCommand()59 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() argument60 auto it = CommandMap().find(cmd_name); in CreateCommandInstance()
66 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local67 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()68 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
63 void RegisterCommand(const std::string& cmd_name,65 void UnRegisterCommand(const std::string& cmd_name);66 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
75 const char *cmd_name; member99 if (strcmp(argv[1], function_table[i].cmd_name) == 0) { in main()