|
iceberg-cpp
|
A shell command builder and executor for tests. More...
#include <cmd_util.h>
Public Member Functions | |
| Command (std::string program) | |
| Command & | Arg (std::string arg) |
| Add a single argument. | |
| Command & | Args (const std::vector< std::string > &args) |
| Add multiple arguments at once. | |
| Command & | CurrentDir (const std::filesystem::path &path) |
| Set the current working directory for the command. | |
| Command & | Env (const std::string &key, const std::string &val) |
| Set an environment variable for the command. | |
| void | RunCommand (const std::string &desc) const |
| Execute the command and print logs. | |
A shell command builder and executor for tests.
| void iceberg::Command::RunCommand | ( | const std::string & | desc | ) | const |
Execute the command and print logs.