diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-04-22 21:57:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-07-01 11:19:12 +0300 |
commit | d77ca8720df495017139a24a59c502f53c07df9f (patch) | |
tree | 5093b9700607e0db35d6260ad766e7f171e2bf8f /bpkg/cfg-create.hxx | |
parent | aee787bce2b94a057ad8e6fd42e2cd901776e348 (diff) |
Add support for associated configurations
Diffstat (limited to 'bpkg/cfg-create.hxx')
-rw-r--r-- | bpkg/cfg-create.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bpkg/cfg-create.hxx b/bpkg/cfg-create.hxx index 9831160..8b85d93 100644 --- a/bpkg/cfg-create.hxx +++ b/bpkg/cfg-create.hxx @@ -5,6 +5,7 @@ #define BPKG_CFG_CREATE_HXX #include <bpkg/types.hxx> +#include <bpkg/forward.hxx> // configuration #include <bpkg/utility.hxx> #include <bpkg/cfg-create-options.hxx> @@ -14,6 +15,26 @@ namespace bpkg int cfg_create (const cfg_create_options&, cli::scanner& args); + // Create a new bpkg configuration, initialize its database (add self- + // association, root repository, etc), and return this configuration + // information. See bpkg-cfg-create(1) for arguments semantics. + // + // If there is a current transaction already open, then stash it before the + // database initialization and restore it afterwards (used to create private + // host configuration on demand). + // + shared_ptr<configuration> + cfg_create (const common_options&, + const dir_path&, + optional<string> name, + string type, + const strings& mods, + const strings& vars, + bool existing, + bool wipe, + optional<uuid> uid = nullopt, + const optional<dir_path>& host_config = nullopt); + default_options_files options_files (const char* cmd, const cfg_create_options&, |