Searched refs:cmd_name (Results 1 – 5 of 5) sorted by relevance
79 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local80 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()81 printf(" %-20s%s\n", cmd_name.c_str(), cmd->ShortHelpString().c_str()); in PrintShortHelp()
153 void RegisterCommand(const std::string& cmd_name, in RegisterCommand() argument155 CommandMap().insert(std::make_pair(cmd_name, callback)); in RegisterCommand()158 void UnRegisterCommand(const std::string& cmd_name) { in UnRegisterCommand() argument159 CommandMap().erase(cmd_name); in UnRegisterCommand()162 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name) { in CreateCommandInstance() argument163 auto it = CommandMap().find(cmd_name); in CreateCommandInstance()
200 void RegisterCommand(const std::string& cmd_name,202 void UnRegisterCommand(const std::string& cmd_name);203 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
110 static void CheckSimpleperfArguments(std::string_view cmd_name, char** args) { in CheckSimpleperfArguments() argument113 if (cmd_name == "api-collect") { in CheckSimpleperfArguments()115 } else if (cmd_name == "record") { in CheckSimpleperfArguments()117 } else if (cmd_name == "stat") { in CheckSimpleperfArguments()120 error(1, 0, "cmd isn't allowed: %s", cmd_name.data()); in CheckSimpleperfArguments()
161 std::string cmd_name; in ExecuteCommands() local164 cmd_name = FB_CMD_OEM; in ExecuteCommands()167 cmd_name = args[0]; in ExecuteCommands()170 auto found_command = kCommandMap.find(cmd_name); in ExecuteCommands()