diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-20 08:37:29 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-20 09:02:45 +0100 |
commit | a5585150f0ff8d27ddd22792f521f1374a3eedd8 (patch) | |
tree | 3bb442e835502d452ebe5137ad7fca5f5156bb5f /src/execute.h | |
parent | 3cbadb8f5c55020ece96fab0fc8f4f51da01888e (diff) |
Add env to execute function.
Diffstat (limited to 'src/execute.h')
-rw-r--r-- | src/execute.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/execute.h b/src/execute.h index c750a83..336c3ef 100644 --- a/src/execute.h +++ b/src/execute.h @@ -5,7 +5,9 @@ #include <string> #include <vector> +#include <map> int execute(const std::string& command, - const std::vector<std::string>& args, + const std::vector<std::string>& args = {}, + const std::map<std::string, std::string>& env = {}, bool verbose = true); |