mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
Settings: Add bool get()
This commit is contained in:
parent
eca29bd72d
commit
d37d012774
4 changed files with 13 additions and 3 deletions
|
@ -136,6 +136,14 @@ Strings Settings::get(const string & name, const Strings & def)
|
|||
}
|
||||
|
||||
|
||||
bool Settings::get(const string & name, bool def)
|
||||
{
|
||||
bool res = def;
|
||||
_get(res, name);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
void Settings::update()
|
||||
{
|
||||
_get(tryFallback, "build-fallback");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue