mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature - Config validation
- The 'version' command now complains about use of deprecated color names and duplicate entries. - Unit tests verify duplicate detection. - Unit tests verify deprecated color detection. - Most validation code moved from command.cpp to Config.cpp.
This commit is contained in:
parent
b032a00283
commit
42c1b30c31
6 changed files with 206 additions and 25 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
void createDefaultRC (const std::string&, const std::string&);
|
||||
void createDefaultData (const std::string&);
|
||||
void setDefaults ();
|
||||
void clear ();
|
||||
|
||||
const std::string get (const char*);
|
||||
const std::string get (const char*, const char*);
|
||||
|
@ -56,6 +57,13 @@ public:
|
|||
void set (const std::string&, const double);
|
||||
void set (const std::string&, const std::string&);
|
||||
void all (std::vector <std::string>&);
|
||||
void getSequence (std::vector<std::string>&);
|
||||
|
||||
std::string checkForDuplicates ();
|
||||
std::string checkForDeprecatedColor ();
|
||||
|
||||
private:
|
||||
std::vector <std::string> sequence;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue