From a5585150f0ff8d27ddd22792f521f1374a3eedd8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Jan 2023 08:37:29 +0100 Subject: Add env to execute function. --- src/execute.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/execute.h') 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 #include +#include int execute(const std::string& command, - const std::vector& args, + const std::vector& args = {}, + const std::map& env = {}, bool verbose = true); -- cgit v1.2.3