aboutsummaryrefslogtreecommitdiff
path: root/bdep/update.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/update.hxx')
-rw-r--r--bdep/update.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/bdep/update.hxx b/bdep/update.hxx
new file mode 100644
index 0000000..38d6278
--- /dev/null
+++ b/bdep/update.hxx
@@ -0,0 +1,32 @@
+// file : bdep/update.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BDEP_UPDATE_HXX
+#define BDEP_UPDATE_HXX
+
+#include <bdep/types.hxx>
+#include <bdep/utility.hxx>
+
+#include <bdep/build.hxx>
+#include <bdep/update-options.hxx>
+
+namespace bdep
+{
+ inline void
+ cmd_update (const cmd_update_options& o,
+ const shared_ptr<configuration>& c,
+ const cstrings& pkgs,
+ const strings& cfg_vars)
+ {
+ run_bpkg (2, o, "update", "-d", c->path, cfg_vars, pkgs);
+ }
+
+ inline int
+ cmd_update (const cmd_update_options& o, cli::scanner& args)
+ {
+ return cmd_build (o, &cmd_update, args);
+ }
+}
+
+#endif // BDEP_UPDATE_HXX