Servers
This commit is contained in:
11
src/main.cpp
11
src/main.cpp
@ -51,7 +51,16 @@ int main(int argc, char* argv[]) {
|
||||
dropshell::check_status();
|
||||
return 0;
|
||||
} else if (cmd == "servers") {
|
||||
dropshell::list_servers();
|
||||
if (argc > 2) {
|
||||
// Show details for specific server
|
||||
dropshell::show_server_details(argv[2]);
|
||||
} else {
|
||||
// List all servers
|
||||
dropshell::list_servers();
|
||||
}
|
||||
return 0;
|
||||
} else if (cmd == "templates") {
|
||||
dropshell::list_templates();
|
||||
return 0;
|
||||
} else if (cmd == "init") {
|
||||
if (!vm.count("directory")) {
|
||||
|
Reference in New Issue
Block a user