From 353438a94953bf4d093af0d84decd5ec7529ed34 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 20 Jun 2018 09:51:56 +0200 Subject: Add $process.run() and $process.run_regex() functions $process.run([ ...]) Return trimmed stdout. $process.run_regex([ ...], [, ]) Return stdout lines matched and optionally processed with regex. Each line of stdout (including the customary trailing blank) is matched (as a whole) against and, if successful, returned, optionally processed with , as an element of a list. --- build2/function.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/function.cxx') diff --git a/build2/function.cxx b/build2/function.cxx index 43dd531..4367185 100644 --- a/build2/function.cxx +++ b/build2/function.cxx @@ -329,6 +329,7 @@ namespace build2 void builtin_functions (); // functions-builtin.cxx void filesystem_functions (); // functions-filesystem.cxx void path_functions (); // functions-path.cxx + void process_functions (); // functions-process.cxx void process_path_functions (); // functions-process-path.cxx void regex_functions (); // functions-regex.cxx void string_functions (); // functions-string.cxx @@ -341,6 +342,7 @@ namespace build2 builtin_functions (); filesystem_functions (); path_functions (); + process_functions (); process_path_functions (); regex_functions (); string_functions (); -- cgit v1.1