Searched refs:cmd_name (Results 1 – 5 of 5) sorted by relevance
80 for (auto& cmd_name : GetAllCommandNames()) { in PrintShortHelp() local81 std::unique_ptr<Command> cmd = CreateCommandInstance(cmd_name); in PrintShortHelp()82 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()
197 void RegisterCommand(const std::string& cmd_name,199 void UnRegisterCommand(const std::string& cmd_name);200 std::unique_ptr<Command> CreateCommandInstance(const std::string& cmd_name);
113 static void CheckSimpleperfArguments(std::string_view cmd_name, char** args) { in CheckSimpleperfArguments() argument116 if (cmd_name == "api-collect") { in CheckSimpleperfArguments()118 } else if (cmd_name == "record") { in CheckSimpleperfArguments()120 } else if (cmd_name == "stat") { in CheckSimpleperfArguments()123 error(1, 0, "cmd isn't allowed: %s", cmd_name.data()); in CheckSimpleperfArguments()
172 std::string cmd_name; in ExecuteCommands() local175 cmd_name = FB_CMD_OEM; in ExecuteCommands()178 cmd_name = args[0]; in ExecuteCommands()181 auto found_command = kCommandMap.find(cmd_name); in ExecuteCommands()