busted
This commit is contained in:
@ -186,4 +186,16 @@ void create_server(const std::string &server_name)
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
void get_all_used_commands(std::set<std::string> &commands)
|
||||
{
|
||||
std::set<std::string> template_shell_commands;
|
||||
std::vector<ServerInfo> servers = get_configured_servers();
|
||||
for (const auto& server : servers)
|
||||
{
|
||||
std::vector<dropshell::ServiceInfo> services = dropshell::get_server_services_info(server.name);
|
||||
for (const auto& service : services)
|
||||
template_shell_commands.merge(dropshell::get_used_commands(server.name, service.service_name));
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace dropshell
|
Reference in New Issue
Block a user