20 #ifndef BUILDCACHE_SYS_UTILS_HPP_
21 #define BUILDCACHE_SYS_UTILS_HPP_
23 #include <base/string_list.hpp>
43 const bool quiet =
true,
44 const std::string& work_dir = std::string());
57 const bool quiet =
true,
58 const std::string& work_dir = std::string());
94 #endif // BUILDCACHE_SYS_UTILS_HPP_
std::string std_err
The contents of stderr.
Definition: sys_utils.hpp:32
Run results from an external command.
Definition: sys_utils.hpp:30
The top level namespace.
Definition: compressor.cpp:34
run_result_t run(const string_list_t &args, const bool quiet, const std::string &work_dir)
Run the given command.
Definition: sys_utils.cpp:164
A convenient vector of strings container with support functions for program argument handling.
Definition: string_list.hpp:30
void print_raw_stderr(const std::string &str)
Print a string to stderr.
Definition: sys_utils.cpp:565
void open_in_default_editor(const std::string &path)
Open a file in the user default editor.
Definition: sys_utils.cpp:477
int return_code
The program return code (zero for success).
Definition: sys_utils.hpp:33
std::string get_local_temp_folder()
Get the temporary folder for this BuildCache instance.
Definition: sys_utils.cpp:579
run_result_t run_with_prefix(const string_list_t &args, const bool quiet, const std::string &work_dir)
Run the given command with an optional prefix.
Definition: sys_utils.cpp:454
void print_raw_stdout(const std::string &str)
Print a string to stdout.
Definition: sys_utils.cpp:551
std::string std_out
The contents of stdout.
Definition: sys_utils.hpp:31