Working on restore command.

This commit is contained in:
Your Name
2025-04-26 18:38:10 +12:00
parent 977e878eff
commit b07e3830de
6 changed files with 14 additions and 12 deletions

View File

@ -67,18 +67,17 @@ void dropshell::autocomplete(const std::vector<std::string> &args)
std::string service_name = args[4];
if (cmd=="restore")
{
std::set<std::string> backups;
std::vector<dropshell::ServerInfo> servers = dropshell::get_configured_servers();
for (auto server : servers)
backups.merge(dropshell::list_backups(server.name, service_name));
std::set<std::string> backups = dropshell::list_backups(service_name);
for (auto backup : backups)
std::cout << backup << std::endl;
return;
}
return; // no more autocompletion possible - don't know what the argument is for.
}
return;
// args>5 - no more autocompletion possible - don't know what the argument is for.
return; // catch-all.
}
void dropshell::autocomplete_list_commands()