1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

nix: Add --help-config flag

This commit is contained in:
Eelco Dolstra 2017-06-07 16:49:54 +02:00
parent b8283773bd
commit aa952d5f0b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 30 additions and 2 deletions

View file

@ -31,6 +31,8 @@ class Config
{
friend class AbstractSetting;
public:
struct SettingData
{
bool isAlias;
@ -40,7 +42,11 @@ class Config
{ }
};
std::map<std::string, SettingData> _settings;
typedef std::map<std::string, SettingData> Settings;
private:
Settings _settings;
StringMap initials;
@ -58,6 +64,8 @@ public:
StringMap getSettings(bool overridenOnly = false);
const Settings & _getSettings() { return _settings; }
void applyConfigFile(const Path & path, bool fatal = false);
void resetOverriden();