diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:41:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:41:42 +0200 |
commit | a38876e1bcb94b6452f2c820e20883580e47cfe4 (patch) | |
tree | 001e06a00c0adcbe497a8386daf4516a2036202e /bpkg/pkg-command | |
parent | 33c8959ea3e3e6a4de1d5ba254a262b0464ee42b (diff) |
Add support for passing config vars to pkg-{build,clean,install,uninstall}
Diffstat (limited to 'bpkg/pkg-command')
-rw-r--r-- | bpkg/pkg-command | 9 |
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 |