diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-02-12 13:54:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-02-12 13:54:40 +0200 |
commit | 67617fc444600cad5de2338f4d6f49d7a46fd915 (patch) | |
tree | f81b44aecf89147eb7e178f49e314d26a6d1fee6 /libbuild2/utility.hxx | |
parent | 7b7732096c0c4cb6f9f1c8e31a48417973748ff8 (diff) |
Add convenience run_start() overload
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 50af5e6..18122e0 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -293,7 +293,20 @@ namespace build2 const location& = location ()); inline process - run_start (const process_env& pe, // Implicit-constructible from process_path. + run_start (uint16_t verbosity, + const process_env& pe, + cstrings& args, + int in, + int out, + bool error = true, + const dir_path& cwd = dir_path (), + const location& l = location ()) + { + return run_start (verbosity, pe, args.data (), in, out, error, cwd, l); + } + + inline process + run_start (const process_env& pe, const char* args[], int in, int out, @@ -304,6 +317,18 @@ namespace build2 return run_start (verb_never, pe, args, in, out, error, cwd, l); } + inline process + run_start (const process_env& pe, + cstrings& args, + int in, + int out, + bool error = true, + const dir_path& cwd = dir_path (), + const location& l = location ()) + { + return run_start (pe, args.data (), in, out, error, cwd, l); + } + inline void run (const process_path& p, const char* args[], |