aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-command
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-25 15:41:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-25 15:41:42 +0200
commita38876e1bcb94b6452f2c820e20883580e47cfe4 (patch)
tree001e06a00c0adcbe497a8386daf4516a2036202e /bpkg/pkg-command
parent33c8959ea3e3e6a4de1d5ba254a262b0464ee42b (diff)
Add support for passing config vars to pkg-{build,clean,install,uninstall}
Diffstat (limited to 'bpkg/pkg-command')
-rw-r--r--bpkg/pkg-command9
1 files changed, 8 insertions, 1 deletions
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<selected_package> 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<shared_ptr<selected_package>>&);
+ const strings& common_vars,
+ const vector<pkg_command_vars>&);
}
#endif // BPKG_PKG_COMMAND