Working on restore command.
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user