Add 'latest' hidden option to restore
This commit is contained in:
@ -140,7 +140,7 @@ int main(int argc, char* argv[]) {
|
||||
gConfig().save_config(false);
|
||||
|
||||
std::string config_file = localfile::dropshell_json();
|
||||
if (!edit_file(config_file) || !std::filesystem::exists(config_file))
|
||||
if (!service_runner::edit_file(config_file) || !std::filesystem::exists(config_file))
|
||||
return die("Error: Failed to edit config file.");
|
||||
|
||||
gConfig().load_config();
|
||||
@ -208,13 +208,13 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
if (cmd == "ssh" && argc < 4) {
|
||||
if (argc < 3) return die("Error: ssh requires a server name and optionally service name");
|
||||
interactive_ssh(argv[2], "bash");
|
||||
service_runner::interactive_ssh(argv[2], "bash");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (cmd == "edit" && argc < 4) {
|
||||
ASSERT_MSG(argc>=3, "Error: logic error!");
|
||||
edit_server(safearg(argc,argv,2));
|
||||
service_runner::edit_server(safearg(argc,argv,2));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user