diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-18 07:50:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-18 07:50:38 +0200 |
commit | 9accdefc33940d713828195313ca1a0eb0de030f (patch) | |
tree | 22f1e84a97d3ba353788d5ec30c20ea4c6d43670 /bpkg/pkg-command | |
parent | cae11509203061e894e6310c35ea50ae818af3a7 (diff) |
Generalize pkg_update() to pkg_command() to be used for clean, test, etc
Diffstat (limited to 'bpkg/pkg-command')
-rw-r--r-- | bpkg/pkg-command | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bpkg/pkg-command b/bpkg/pkg-command new file mode 100644 index 0000000..225a112 --- /dev/null +++ b/bpkg/pkg-command @@ -0,0 +1,21 @@ +// file : bpkg/pkg-command -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +#ifndef BPKG_PKG_COMMAND +#define BPKG_PKG_COMMAND + +#include <bpkg/types> +#include <bpkg/pkg-common-options> + +namespace bpkg +{ + // Common pkg-{update,clean,test,install,...} implementation. + // + void + pkg_command (const string& cmd, // Without the 'pkg-' prefix. + const pkg_common_options&, + cli::scanner& args); +} + +#endif // BPKG_PKG_COMMAND |