diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-26 17:33:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-26 17:33:24 +0200 |
commit | 61d9e8699687342c2e32c32c8d4eb71760d5d290 (patch) | |
tree | 9fd6ce694d857704ad369ac32f779c19ab4f665d /include/Exec.hpp | |
parent | 3a150e29cd1fa63614f45dff01240b01f9c4a025 (diff) |
Use fork/exec instead of popen. Add Path class
Diffstat (limited to 'include/Exec.hpp')
-rw-r--r-- | include/Exec.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/Exec.hpp b/include/Exec.hpp index 93ce307..538f0dc 100644 --- a/include/Exec.hpp +++ b/include/Exec.hpp @@ -4,6 +4,7 @@ #include "Result.hpp" #include "../include/FileUtil.hpp" #include <string> +#include <vector> namespace sibs { @@ -13,8 +14,7 @@ namespace sibs int exitCode; }; - Result<ExecResult> exec(const _tinydir_char_t *cmd, bool print = false); - Result<ExecResult> exec(const FileString &cmd, bool print = false); + Result<ExecResult> exec(const std::vector<FileString> &args, bool print_instead_of_pipe = false); } #endif //SIBS_EXEC_HPP |