From a38876e1bcb94b6452f2c820e20883580e47cfe4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jan 2016 15:41:42 +0200 Subject: Add support for passing config vars to pkg-{build,clean,install,uninstall} --- bpkg/pkg-command | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-command') diff --git a/bpkg/pkg-command b/bpkg/pkg-command index 60d0396..334a97e 100644 --- a/bpkg/pkg-command +++ b/bpkg/pkg-command @@ -20,6 +20,12 @@ namespace bpkg const configuration_options&, cli::scanner& args); + struct pkg_command_vars + { + shared_ptr pkg; + strings vars; + }; + void pkg_command (const string& cmd, const dir_path& configuration, @@ -30,7 +36,8 @@ namespace bpkg pkg_command (const string& cmd, const dir_path& configuration, const common_options&, - const vector>&); + const strings& common_vars, + const vector&); } #endif // BPKG_PKG_COMMAND -- cgit v1.1