Restore autocompletion working!

This commit is contained in:
Your Name
2025-04-26 00:11:23 +12:00
parent fa7236b4f5
commit 8e0683c997
6 changed files with 71 additions and 0 deletions

View File

@ -557,6 +557,23 @@ void edit_file(const std::string &file_path, const std::string & aftertext)
exit(EXIT_FAILURE);
}
bool service_runner::restore(std::string backup_file)
{
std::string command = "restore";
std::string script_path = mRemote_service_template_path + "/" + command + ".sh";
if (!template_command_exists(m_service_info.template_name, command)) {
std::cout << "No restore script for " << m_service_info.template_name << std::endl;
return true; // nothing to restore.
}
/// TOODOOOOOO!!!!!!
std::cout << "Restore not implemented yet" << std::endl;
return true;
// std::string run_cmd = construct_standard_command_run_cmd("restore");
// return execute_ssh_command(run_cmd, "Restore script failed");
}
void service_runner::interactive_ssh_service()
{
std::set<std::string> used_commands = get_used_commands(m_server_name, m_service_info.service_name);