diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2022-03-23 17:23:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2022-03-23 17:32:54 +0300 |
commit | 079abe88ec3d294ff87879ed6d9adcdf03b63424 (patch) | |
tree | 456eac223583206b9f1ec700fb75eb5430ffda3e | |
parent | 2cd2a3f16af272e57aa76c499395c44a287c1817 (diff) |
Fix bdep-config-list output in JSON format
-rw-r--r-- | bdep/config.cxx | 4 | ||||
-rw-r--r-- | bdep/status.cxx | 4 | ||||
-rw-r--r-- | tests/config.testscript | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/bdep/config.cxx b/bdep/config.cxx index c8a8529..38888e1 100644 --- a/bdep/config.cxx +++ b/bdep/config.cxx @@ -820,11 +820,11 @@ namespace bdep ss.member ("forward", c->forward); if (c->auto_sync) - ss.member ("auto-sync", c->auto_sync); + ss.member ("auto_sync", c->auto_sync); if (!c->packages.empty ()) { - ss.member_name ("packages"); + ss.member_name ("packages", false /* check */); ss.begin_array (); diff --git a/bdep/status.cxx b/bdep/status.cxx index d932e58..82eac25 100644 --- a/bdep/status.cxx +++ b/bdep/status.cxx @@ -182,7 +182,7 @@ namespace bdep pkgs = config_packages (*c, prj_pkgs.packages); ss.begin_object (); - ss.member_name ("configuration"); + ss.member_name ("configuration", false /* check */); ss.begin_object (); ss.member ("id", *c->id); ss.member ("path", c->path.string ()); @@ -249,7 +249,7 @@ namespace bdep if (!ps.empty () && ps.back () == '\n') ps.pop_back (); - ss.member_name ("packages"); + ss.member_name ("packages", false /* check */); ss.value_json_text (ps); } else diff --git a/tests/config.testscript b/tests/config.testscript index d537c0b..2a1f499 100644 --- a/tests/config.testscript +++ b/tests/config.testscript @@ -50,7 +50,7 @@ deinit += -d prj "type": "target", "default": true, "forward": true, - "auto-sync": true, + "auto_sync": true, "packages": [ { "name": "prj" @@ -290,7 +290,7 @@ deinit += -d prj "type": "target", "default": true, "forward": true, - "auto-sync": true + "auto_sync": true }, { "id": 4, @@ -299,7 +299,7 @@ deinit += -d prj "type": "host", "default": true, "forward": true, - "auto-sync": true + "auto_sync": true } ] EOO |