mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-07 21:07:20 +02:00
Feature - #296 Setting configuration variables in .taskrc
- Now supports 'task config name value', 'task config name ""', and 'task config name' to directly modify the .taskrc file. - Updated man page. - Added unit tests. - Modified existing config command to also display configuration variables that have no values.
This commit is contained in:
parent
c82469fa2c
commit
229a3d309c
7 changed files with 149 additions and 12 deletions
|
@ -271,7 +271,10 @@ void Config::load (const std::string& file, int nest /* = 1 */)
|
|||
|
||||
// First time in, load the default values.
|
||||
if (nest == 1)
|
||||
{
|
||||
setDefaults ();
|
||||
original_file = File (file);
|
||||
}
|
||||
|
||||
// Read the file, then parse the contents.
|
||||
std::string contents;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue