Files
SpCloudCore/SpCloudMain/Service/CommandService.cpp
2024-08-10 06:22:48 +02:00

15 lines
292 B
C++

#include <iostream>
class CommandService
{
public:
static void execute_command(const std::string& command) {
int result = std::system(command.c_str()); // NOLINT(concurrency-mt-unsafe)
if (result != 0) {
std::cerr << "Command failed with code: " << result << std::endl;
}
}
};