aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command.hxx
diff options
context:
space:
mode:
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>&);
}