Enhancement

- Rewrote the code that checks for and creates ~/.taskrc and ~/.task
  if necessary.
- Takes into consideration the following:
    - rc:<file>
    - <file>:data.location
    - <~/.taskrc>:data.location
    - rc.data.location:<dir>
This commit is contained in:
Paul Beckingham 2009-07-03 20:46:19 -04:00
parent 3072476e53
commit a23a350b8b
3 changed files with 166 additions and 160 deletions

View file

@ -41,7 +41,8 @@ public:
Config& operator= (const Config&);
bool load (const std::string&);
void createDefault (const std::string&);
void createDefaultRC (const std::string&, const std::string&);
void createDefaultData (const std::string&);
void setDefaults ();
const std::string get (const char*);