#pragma once #include #include namespace fws { struct CommandResult { bool started = false; int exitCode = -1; std::string output; }; // Runs an executable directly (no shell) and captures stdout and stderr. CommandResult runCommand(const std::vector& arguments); // Resolves a program name against PATH, returning an empty string when absent. std::string findExecutable(const std::string& name); std::string trim(const std::string& value); std::vector splitLines(const std::string& text); } // namespace fws