diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-20 17:34:47 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-20 17:34:47 +0200 |
commit | efa4bdbfcd1489527bcf6f20a49c9a3bca8bbf6b (patch) | |
tree | 0e965a2b8feb129623c221564e7ca208ce16fe2a /src/libstore | |
parent | 4410e9d995bcd53a7a4cff0bbee3917375adcba3 (diff) |
Improve nix show-config --json
In particular, show descriptions. This could be used for manpage
generation etc.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/globals.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 3242ef9d6..953bf6aaa 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -89,6 +89,11 @@ template<> std::string BaseSetting<SandboxMode>::to_string() else abort(); } +template<> void BaseSetting<SandboxMode>::toJSON(JSONPlaceholder & out) +{ + AbstractSetting::toJSON(out); +} + void MaxBuildJobsSetting::set(const std::string & str) { if (str == "auto") value = std::max(1U, std::thread::hardware_concurrency()); |