aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-09 16:21:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-09 16:21:14 +0200
commitd369ab42f2d3bc52086dc7d9b79510dce5e80513 (patch)
tree504d1f694804b115b71d858cfe8e6b44fde5770e /bdep/utility.hxx
parentd304762e4338b4a055e2be018205a00c2ca9ee2f (diff)
Add support for executing bpkg
Diffstat (limited to 'bdep/utility.hxx')
-rw-r--r--bdep/utility.hxx18
1 files changed, 16 insertions, 2 deletions
diff --git a/bdep/utility.hxx b/bdep/utility.hxx
index af85355..36a405c 100644
--- a/bdep/utility.hxx
+++ b/bdep/utility.hxx
@@ -14,8 +14,7 @@
#include <libbutl/ft/lang.hxx>
-#include <libbutl/utility.mxx> // casecmp(), reverse_iterate(), etc
-
+#include <libbutl/utility.mxx> // casecmp(), reverse_iterate(), etc
#include <libbutl/filesystem.mxx>
#include <bdep/types.hxx>
@@ -89,6 +88,21 @@ namespace bdep
void
rm (const path&, uint16_t verbosity = 3);
+ // Run the bpkg process.
+ //
+ class common_options;
+
+ const char*
+ name_bpkg (const common_options&);
+
+ template <typename O, typename E, typename... A>
+ process
+ start_bpkg (const common_options&, O&& out, E&& err, A&&... args);
+
+ template <typename... A>
+ process_exit
+ run_bpkg (const common_options&, A&&... args);
+
// Manifest parsing and serialization.
//
// For parsing, if path is '-', then read from stdin.