#ifndef PROCESSEXECUTOR_H #define PROCESSEXECUTOR_H #include #include struct ProcessResult { int exitCode; PIString output; PIString error; }; class ProcessExecutor { public: // Execute a command with args, wait up to timeoutSeconds, return result. // Only one process runs at a time — synchronous, stack-based PIProcess. static ProcessResult run(const PIString & command, const PIStringList & args, int timeoutSeconds, const PIString & workingDir); }; #endif