#pragma once #include #include #include // Run a command and wait for completion; if successful (exit code 0), return // the stdout output, else throw an exception. std::string runCommand(const std::vector &args); // Run a command and wait for completion, returning the exit code and the // stdout output. std::pair readCommand(const std::vector &args);