Rules: Added default settings

This commit is contained in:
Paul Beckingham 2016-03-20 10:38:56 -04:00
parent 882a6efa00
commit 3ffd07634c

View file

@ -33,6 +33,11 @@
#include <tuple>
#include <inttypes.h>
static std::map <std::string, std::string> defaultSettings =
{
{"confirmation", "yes"},
};
////////////////////////////////////////////////////////////////////////////////
// Nested files are supported, with the following construct:
// import /absolute/path/to/file
@ -44,8 +49,7 @@ void Rules::load (const std::string& file, int nest /* = 1 */)
// First time in, load the default values.
if (nest == 1)
{
// TODO This is where defaults would be set.
_settings = defaultSettings;
_original_file = File (file)._data;
}