aboutsummaryrefslogtreecommitdiff
path: root/bdep/project.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-21 13:59:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-22 08:07:05 +0200
commitc6dce94e537f394cb3126d0883de7dcb4a42ea01 (patch)
tree485e7da1a61ed2a8c352717f9ac5fa3946dba4c2 /bdep/project.cxx
parentef36aaf7bca0c3c878400d70ca05cf5d57aac66d (diff)
Implement config-list command, adjust config-add/create diagnostics
Diffstat (limited to 'bdep/project.cxx')
-rw-r--r--bdep/project.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/bdep/project.cxx b/bdep/project.cxx
index dacb921..0d8686f 100644
--- a/bdep/project.cxx
+++ b/bdep/project.cxx
@@ -46,7 +46,7 @@ namespace bdep
for (const string& n: po.config_name ())
{
if (auto c = db.query_one<configuration> (query::name == n))
- add (c);
+ add (move (c));
else
fail << "no configuration name '" << n << "' in project " << prj;
}
@@ -62,7 +62,7 @@ namespace bdep
d.normalize ();
if (auto c = db.query_one<configuration> (query::path == d.string ()))
- add (c);
+ add (move (c));
else
fail << "no configuration directory " << d << " in project " << prj;
}
@@ -75,7 +75,7 @@ namespace bdep
for (uint64_t id: po.config_id ())
{
if (auto c = db.find<configuration> (id))
- add (c);
+ add (move (c));
else
fail << "no configuration id " << id << " in project " << prj;
}
@@ -86,7 +86,7 @@ namespace bdep
if (po.all ())
{
for (auto c: pointer_result (db.query<configuration> ()))
- add (c);
+ add (move (c));
if (r.empty ())
fail << "no existing configurations";
@@ -99,7 +99,7 @@ namespace bdep
if (fallback_default)
{
if (auto c = db.query_one<configuration> (query::default_))
- add (c);
+ add (move (c));
else
fail << "no default configuration in project " << prj <<
info << "use (@<cfg-name> | --config|-c <cfg-dir> | --all|-a) to "