Hook up create-server.
This commit is contained in:
parent
d9f6897de0
commit
63b9980a61
@ -219,6 +219,15 @@ int main(int argc, char* argv[]) {
|
|||||||
dropshell::create_template(argv[2]);
|
dropshell::create_template(argv[2]);
|
||||||
return 0;
|
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.
|
// handle running a command.
|
||||||
for (const auto& command : commands) {
|
for (const auto& command : commands) {
|
||||||
if (cmd == command) {
|
if (cmd == command) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user