24 lines
588 B
C++
24 lines
588 B
C++
#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
|