diff options
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,5 +5,10 @@ #include <utility> +// 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<std::string> &args); + +// Run a command and wait for completion, returning the exit code and the +// stdout output. std::pair<int, std::string> readCommand(const std::vector<std::string> &args); |