Yay
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@ -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) {
|
||||
|
Reference in New Issue
Block a user