summaryrefslogtreecommitdiffstats
path: root/bdep/clean.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-10 10:34:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-10 10:34:31 +0200
commit023f1a286b7dfe80eb80a9e6924e492cf6f3f80a (patch)
tree6accbb5ccee95ae5cb7ba9f186b2694c9797b2d9 /bdep/clean.hxx
parente3133aa9628858bcfe414f95731831b5962358c7 (diff)
downloadbdep-023f1a286b7dfe80eb80a9e6924e492cf6f3f80a.tar.gz
bdep-023f1a286b7dfe80eb80a9e6924e492cf6f3f80a.tar.xz
bdep-023f1a286b7dfe80eb80a9e6924e492cf6f3f80a.zip
Implement test, update, and clean commands
Diffstat (limited to 'bdep/clean.hxx')
-rw-r--r--bdep/clean.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/bdep/clean.hxx b/bdep/clean.hxx
new file mode 100644
index 0000000..c66ecc1
--- /dev/null
+++ b/bdep/clean.hxx
@@ -0,0 +1,32 @@
+// file : bdep/clean.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BDEP_CLEAN_HXX
+#define BDEP_CLEAN_HXX
+
+#include <bdep/types.hxx>
+#include <bdep/utility.hxx>
+
+#include <bdep/build.hxx>
+#include <bdep/clean-options.hxx>
+
+namespace bdep
+{
+ inline void
+ cmd_clean (const cmd_clean_options& o,
+ const shared_ptr<configuration>& c,
+ const cstrings& pkgs,
+ const strings& cfg_vars)
+ {
+ run_bpkg (2, o, "clean", "-d", c->path, cfg_vars, pkgs);
+ }
+
+ inline int
+ cmd_clean (const cmd_clean_options& o, cli::scanner& args)
+ {
+ return cmd_build (o, &cmd_clean, args);
+ }
+}
+
+#endif // BDEP_CLEAN_HXX