iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::Command Class Reference

A shell command builder and executor for tests. More...

#include <cmd_util.h>

Public Member Functions

 Command (std::string program)
 
CommandArg (std::string arg)
 Add a single argument.
 
CommandArgs (const std::vector< std::string > &args)
 Add multiple arguments at once.
 
CommandCurrentDir (const std::filesystem::path &path)
 Set the current working directory for the command.
 
CommandEnv (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.
 

Detailed Description

A shell command builder and executor for tests.

Member Function Documentation

◆ RunCommand()

void iceberg::Command::RunCommand ( const std::string &  desc) const

Execute the command and print logs.

Returns
A Status indicating success or failure

The documentation for this class was generated from the following files: