mirror of
https://github.com/yawaflua/SpCloudCore.git
synced 2025-12-10 04:29:35 +02:00
Add authorization file processing layers
This commit is contained in:
15
SpCloudMain/Service/CommandService.cpp
Normal file
15
SpCloudMain/Service/CommandService.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#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;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user