mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Enhancements - validation
- Implemented Cmd::isReadOnlyCommand. - Implemented Cmd::isWriteCommand. - Added unit tests for above.
This commit is contained in:
parent
bc8aba26a9
commit
0b14efbb76
7 changed files with 217 additions and 322 deletions
11
src/main.h
11
src/main.h
|
@ -37,20 +37,21 @@
|
|||
#include "../auto.h"
|
||||
|
||||
// valid.cpp
|
||||
void guess (const std::string&, const char**, std::string&);
|
||||
bool validPriority (const std::string&);
|
||||
bool validDate (std::string&);
|
||||
bool validDuration (std::string&);
|
||||
bool validDescription (const std::string&);
|
||||
bool validDuration (std::string&);
|
||||
void validReportColumns (const std::vector <std::string>&);
|
||||
void validSortColumns (const std::vector <std::string>&, const std::vector <std::string>&);
|
||||
bool isModifiableAttribute (const std::string&);
|
||||
bool validAttribute (std::string&, std::string&);
|
||||
bool validId (const std::string&);
|
||||
bool validTag (const std::string&);
|
||||
|
||||
// task.cpp
|
||||
void gatherNextTasks (/*const TDB&,*/ T&, std::vector <T>&, std::vector <int>&);
|
||||
void onChangeCallback ();
|
||||
/*
|
||||
std::string runTaskCommand (int, char**, TDB&, bool gc = true, bool shadow = true);
|
||||
std::string runTaskCommand (std::vector <std::string>&, TDB&, bool gc = false, bool shadow = false);
|
||||
*/
|
||||
|
||||
// recur.cpp
|
||||
void handleRecurrence ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue