aboutsummaryrefslogtreecommitdiff
path: root/bdep/config.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-24 13:29:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-24 13:29:06 +0200
commit234428e21adde0ddf60f9665edad3dcfb9fd2584 (patch)
tree28910fd2556f2c6b985762710a3319b981aa151e /bdep/config.hxx
parentefc78a6f3b0d1e0a2278ea5a7f2c502a6b4f00d0 (diff)
Implement --config-create|-C in init and new
Diffstat (limited to 'bdep/config.hxx')
-rw-r--r--bdep/config.hxx15
1 files changed, 13 insertions, 2 deletions
diff --git a/bdep/config.hxx b/bdep/config.hxx
index 2f04719..2ebda45 100644
--- a/bdep/config.hxx
+++ b/bdep/config.hxx
@@ -14,12 +14,23 @@
namespace bdep
{
shared_ptr<configuration>
- cmd_config_add (const dir_path& prj,
+ cmd_config_add (const dir_path& prj,
database&,
dir_path path,
optional<string> name,
optional<bool> default_ = nullopt,
- optional<uint64_t> id = nullopt);
+ optional<uint64_t> id = nullopt,
+ const char* what = "added");
+
+ shared_ptr<configuration>
+ cmd_config_create (const common_options&,
+ const dir_path& prj,
+ database&,
+ dir_path path,
+ cli::scanner& args,
+ optional<string> name,
+ optional<bool> default_ = nullopt,
+ optional<uint64_t> id = nullopt);
int
cmd_config (const cmd_config_options&, cli::scanner& args);