5 #include <unordered_map>
11 #include "subprocess_result.h"
13 namespace linuxdeploy {
14 namespace subprocess {
15 typedef std::unordered_map<std::string, std::string> subprocess_env_map_t;
19 std::vector<std::string> args_{};
20 std::unordered_map<std::string, std::string> env_{};
23 subprocess(std::initializer_list<std::string> args, subprocess_env_map_t env = {});
25 explicit subprocess(std::vector<std::string> args, subprocess_env_map_t env = {});
27 subprocess_result run() const;
29 std::string check_output() const;