// file : bpkg/pkg-command -*- C++ -*- // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef BPKG_PKG_COMMAND #define BPKG_PKG_COMMAND #include #include // selected_package #include #include namespace bpkg { // Common pkg-{update,clean,test,install,...} implementation. // int pkg_command (const string& cmd, // Without the 'pkg-' prefix. 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, const common_options&, const strings& common_vars, const vector&); } #endif // BPKG_PKG_COMMAND