aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-08 12:44:06 +0200
commit974a8c152bf7c9a4a5ce3c45808af65657c2ff1f (patch)
treed9bbfae21920dc0c35758d803831b2b01dc28ac2 /bpkg/pkg-command.hxx
parent994b63e2b60333a83faba52dc6b044fbdbbad61b (diff)
Add --for|-f <operation> option to pkg-update and pkg-build
This allows executing build2 -for-X operations (e.g., update-for-install or update-for-test) in order to minimize the amount of stuff to be updated.
Diffstat (limited to 'bpkg/pkg-command.hxx')
-rw-r--r--bpkg/pkg-command.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/bpkg/pkg-command.hxx b/bpkg/pkg-command.hxx
index de6ccf9..329360d 100644
--- a/bpkg/pkg-command.hxx
+++ b/bpkg/pkg-command.hxx
@@ -15,9 +15,13 @@ namespace bpkg
{
// Common pkg-{update,clean,test,install,...} implementation.
//
+ // If cmd_variant is not empty, then the <cmd>-for-<variant> is performed
+ // instead.
+ //
int
pkg_command (const string& cmd, // Without the 'pkg-' prefix.
const configuration_options&,
+ const string& cmd_variant,
cli::scanner& args);
struct pkg_command_vars
@@ -30,6 +34,7 @@ namespace bpkg
pkg_command (const string& cmd,
const dir_path& configuration,
const common_options&,
+ const string& cmd_variant,
const strings& common_vars,
const vector<pkg_command_vars>&);
}