diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-13 19:00:13 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2021-06-13 19:00:13 +0200 |
commit | 4f923fbdace27f27421bf18dfc9655b73bd68929 (patch) | |
tree | 7bfe332416020e9e70d807b7ca9b7b3c59bb8f1e /execute.h | |
parent | 19195e2bbdcd7a0db8f84732ce54b1c9d07c006c (diff) |
Move execution code into its own function and use from all tasks.
Diffstat (limited to 'execute.h')
-rw-r--r-- | execute.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/execute.h b/execute.h new file mode 100644 index 0000000..f284230 --- /dev/null +++ b/execute.h @@ -0,0 +1,9 @@ +// -*- c++ -*- +#pragma once + +#include <string> +#include <vector> + +int execute(const std::string& command, + const std::vector<std::string>& args, + bool verbose = true); |