aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-update
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-18 07:50:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-18 07:50:38 +0200
commit9accdefc33940d713828195313ca1a0eb0de030f (patch)
tree22f1e84a97d3ba353788d5ec30c20ea4c6d43670 /bpkg/pkg-update
parentcae11509203061e894e6310c35ea50ae818af3a7 (diff)
Generalize pkg_update() to pkg_command() to be used for clean, test, etc
Diffstat (limited to 'bpkg/pkg-update')
-rw-r--r--bpkg/pkg-update8
1 files changed, 6 insertions, 2 deletions
diff --git a/bpkg/pkg-update b/bpkg/pkg-update
index 0ff4b0d..4c89e66 100644
--- a/bpkg/pkg-update
+++ b/bpkg/pkg-update
@@ -6,12 +6,16 @@
#define BPKG_PKG_UPDATE
#include <bpkg/types>
+#include <bpkg/pkg-command>
#include <bpkg/pkg-update-options>
namespace bpkg
{
- void
- pkg_update (const pkg_update_options&, cli::scanner& args);
+ inline void
+ pkg_update (const pkg_update_options& o, cli::scanner& args)
+ {
+ pkg_command ("update", o, args);
+ }
}
#endif // BPKG_PKG_UPDATE