mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-09 20:19:35 +02:00
15 lines
292 B
C++
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;
|
|
}
|
|
}
|
|
};
|
|
|