diff --git a/source/src/commands/list.cpp b/source/src/commands/list.cpp index 48c5d5b..0d829be 100644 --- a/source/src/commands/list.cpp +++ b/source/src/commands/list.cpp @@ -7,6 +7,7 @@ #include "tableprint.hpp" #include "transwarp.hpp" #include "server_env_manager.hpp" +#include "services.hpp" #include #include @@ -161,7 +162,7 @@ void show_server_details(const std::string& server_name) { // list services, and run healthcheck on each { tableprint tp("Services: " + server_name, false); - tp.add_row({"Status", "Service", "Ports"}); + tp.add_row({"Status", "Service", "Template","Ports"}); std::map status = shared_commands::get_all_services_status(server_name); @@ -175,7 +176,7 @@ void show_server_details(const std::string& server_name) { for (const auto& port : service_status.ports) ports_str += std::to_string(port) + " "; - tp.add_row({healthy, service_name, ports_str}); + tp.add_row({healthy, service_name, get_service_info(server_name,service_name).template_name, ports_str}); } // end of for (const auto& service : services) tp.print(); } // end of list services