./
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-13 20:55:06 +12:00
parent 2cd0e8bba2
commit a9b1758503
8 changed files with 30 additions and 11 deletions

View File

@@ -26,6 +26,7 @@ struct EditCommandRegister {
std_autocomplete,
false, // hidden
false, // requires_config
false, // requires_install
0, // min_args (after command)
2, // max_args (after command)
"edit [SERVER] [SERVICE]",

View File

@@ -22,9 +22,10 @@ namespace dropshell
{
CommandRegistry::instance().register_command({health_name_list,
health_handler,
std_autocomplete,
std_autocomplete_allowallservices,
false, // hidden
false, // requires_config
true, // requires_config
true, // requires_install
1, // min_args (after command)
2, // max_args (after command)
"health SERVER",

View File

@@ -30,7 +30,8 @@ struct ListCommandRegister {
list_handler,
std_autocomplete,
false, // hidden
false, // requires_config
true, // requires_config
true, // requires_install
0, // min_args (after command)
2, // max_args (after command)
"list [SERVER] [SERVICE]",

View File

@@ -41,14 +41,16 @@ struct NukeCommandRegister {
std_autocomplete,
false, // hidden
true, // requires_config
true, // requires_install
2, // min_args (after command)
2, // max_args (after command)
"nuke SERVER SERVICE",
"nuke SERVER [SERVICE|*] ",
"Nuke a service on a server. Destroys everything, both local and remote!",
// heredoc
R"(
Nuke a service on a server. Destroys everything, both local and remote!
nuke <server> <service> nuke the given service on the given server.
nuke SERVER SERVICE nuke the given service on the given server.
nuke SERVER * nuke all services on the given server.
)"
});
}

View File

@@ -25,13 +25,13 @@ namespace dropshell
true, // requires_install
1, // min_args (after command)
2, // max_args (after command)
"uninstall SERVER [SERVICE]",
"uninstall SERVER [SERVICE|*]",
"Uninstall a service on a server. Does not remove configuration or user data.",
// heredoc
R"(
Uninstall a service on a server. Does not remove configuration or user data.
uninstall SERVER [SERVICE|*] uninstall the given service (or all services) on the given server;
preserves configuration and user data.
uninstall SERVER SERVICE uninstall the given service on the given server.
uninstall SERVER * uninstall all services on the given server.
)"});
}
} uninstall_command_register;

View File

@@ -32,7 +32,7 @@ namespace dropshell {
uninstall <server> uninstall all services on the given server.
)"});
}
} uninstall_command_register;
} version_command_register;
int version_handler(const CommandContext &ctx)