This commit is contained in:
Your Name
2025-04-25 21:12:07 +12:00
parent 63b9980a61
commit 65b6e2b193
5 changed files with 81 additions and 0 deletions

View File

@ -228,6 +228,16 @@ int main(int argc, char* argv[]) {
dropshell::create_server(argv[2]);
return 0;
}
if (cmd == "create-service") {
if (argc < 4) {
std::cerr << "Error: create-service requires a server name and service name" << std::endl;
return 1;
}
dropshell::create_service(argv[2], argv[3]);
return 0;
}
// handle running a command.
for (const auto& command : commands) {
if (cmd == command) {