mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-30 04:23:24 +02:00
CmdModify: Reorganize code for reuse
- Get "modify" checks ready for reuse by CmdImport's newly added update support. - No changes in functionality, code reorganization only.
This commit is contained in:
parent
2a56e41fa9
commit
9067194390
2 changed files with 127 additions and 80 deletions
|
@ -35,6 +35,13 @@ class CmdModify : public Command
|
|||
public:
|
||||
CmdModify ();
|
||||
int execute (std::string&);
|
||||
void checkConsistency (Task &before, Task &after);
|
||||
int modifyAndUpdate (Task &before, Task &after,
|
||||
std::map <std::string, std::string> *projectChanges = NULL);
|
||||
int modifyRecurrenceSiblings (Task &task,
|
||||
std::map <std::string, std::string> *projectChanges = NULL);
|
||||
int modifyRecurrenceParent (Task &task,
|
||||
std::map <std::string, std::string> *projectChanges = NULL);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue