Commit Graph

7 Commits

Author SHA1 Message Date
Tomas Babej
2467200a3b CmdPurge: Handle child tasks of recurrence templates 2018-05-13 19:24:53 -04:00
Tomas Babej
3e65c3af5e CmdPurge: Simplify implementation 2018-05-13 19:24:21 -04:00
Tomas Babej
c04bdc48aa CmdPurge: Move dependency handling into separate method 2018-05-13 19:23:59 -04:00
Tomas Babej
894eb3ab79 CmdPurge: Prompt before purging a task 2018-05-13 19:23:40 -04:00
Tomas Babej
ffce61da4b CmdPurge: Require GC run prior to execution
Since TDB2::purge method allows purging of the tasks only
on competed.data file, we need to make sure that all the tasks
that were supposed to be moved to completed.data have been
moved - in other words, we need to run GC.

This allows for diract usage of purge after delete, that is:

$ task <filter> delete
$ task <filter> purge

working as expected.
2018-05-13 19:21:56 -04:00
Tomas Babej
909b2e2713 CmdPurge: Remove purged tasks from dependencies 2018-05-13 19:21:34 -04:00
Tomas Babej
70a0e256b0 CmdPurge: Add initial implementation 2018-05-13 19:21:14 -04:00