连接器客户端
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace connector {
|
||||
|
||||
struct ProcessResult {
|
||||
int exit_code = -1;
|
||||
bool timed_out = false;
|
||||
std::string output;
|
||||
};
|
||||
|
||||
std::string platform_name();
|
||||
std::string find_spine_executable();
|
||||
bool valid_spine_executable(const std::string& path);
|
||||
ProcessResult run_process(const std::string& executable,
|
||||
const std::vector<std::string>& arguments,
|
||||
const std::filesystem::path& working_directory,
|
||||
int timeout_seconds);
|
||||
|
||||
} // namespace connector
|
||||
Reference in New Issue
Block a user