From 63b9980a61adb64d41df2c01a34d3b6f0a1dcc92 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 25 Apr 2025 20:59:53 +1200 Subject: [PATCH] Hook up create-server. --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4cf54d7..9931e95 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -219,6 +219,15 @@ int main(int argc, char* argv[]) { dropshell::create_template(argv[2]); return 0; } + + if (cmd == "create-server") { + if (argc < 3) { + std::cerr << "Error: create-server requires a server name" << std::endl; + return 1; + } + dropshell::create_server(argv[2]); + return 0; + } // handle running a command. for (const auto& command : commands) { if (cmd == command) {