aboutsummaryrefslogtreecommitdiff
path: root/bdep/init.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-14 14:29:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-14 14:29:43 +0200
commitcc7216e60cd6893974e687599682c5e6233e9b69 (patch)
tree2304123805fda221d189034b2b85b3aac56055f4 /bdep/init.hxx
parent6be9c7746f92aa721782a4d0eaff5f901fc528cd (diff)
Initial implementation of new command
Diffstat (limited to 'bdep/init.hxx')
-rw-r--r--bdep/init.hxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/bdep/init.hxx b/bdep/init.hxx
index f9a5181..f3397ff 100644
--- a/bdep/init.hxx
+++ b/bdep/init.hxx
@@ -8,10 +8,31 @@
#include <bdep/types.hxx>
#include <bdep/utility.hxx>
+#include <bdep/project.hxx>
#include <bdep/init-options.hxx>
namespace bdep
{
+ // Handle --config-create/add.
+ //
+ shared_ptr<configuration>
+ cmd_init_config (const configuration_name_options&,
+ const dir_path& prj,
+ database&,
+ const dir_path& cfg,
+ bool config_add_specified,
+ bool config_create_specified);
+
+ // Initialize each package in each configuration skipping those that are
+ // already initialized. Then synchronize each configuration.
+ //
+ void
+ cmd_init (const common_options&,
+ const dir_path& prj,
+ database&,
+ const configurations&,
+ const package_locations&);
+
int
cmd_init (const cmd_init_options&, cli::scanner& args);
}