aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-uninstall
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-uninstall')
-rw-r--r--bpkg/pkg-uninstall22
1 files changed, 22 insertions, 0 deletions
diff --git a/bpkg/pkg-uninstall b/bpkg/pkg-uninstall
new file mode 100644
index 0000000..57f83ab
--- /dev/null
+++ b/bpkg/pkg-uninstall
@@ -0,0 +1,22 @@
+// file : bpkg/pkg-uninstall -*- C++ -*-
+// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BPKG_PKG_UNINSTALL
+#define BPKG_PKG_UNINSTALL
+
+#include <bpkg/types>
+#include <bpkg/forward> // selected_package
+#include <bpkg/pkg-command>
+#include <bpkg/pkg-uninstall-options>
+
+namespace bpkg
+{
+ inline int
+ pkg_uninstall (const pkg_uninstall_options& o, cli::scanner& args)
+ {
+ return pkg_command ("uninstall", o, args);
+ }
+}
+
+#endif // BPKG_PKG_UNINSTALL