mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Rules: Added default settings
This commit is contained in:
parent
882a6efa00
commit
3ffd07634c
1 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue