mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
Improve nix show-config --json
In particular, show descriptions. This could be used for manpage generation etc.
This commit is contained in:
parent
4410e9d995
commit
efa4bdbfcd
6 changed files with 71 additions and 43 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue