Merge pull request #17 from DavidBadura/taskwarrior-build

Taskwarrior 2.4.2
This commit is contained in:
David Badura
2015-04-22 14:09:05 +02:00
3 changed files with 31 additions and 17 deletions

View File

@@ -255,19 +255,21 @@ class TaskManager
*/
private function edit(Task $task)
{
$this->taskwarrior->modify(
[
'description' => $task->getDescription(),
'project' => $task->getProject(),
'priority' => $task->getPriority(),
'tags' => $task->getTags(),
'due' => $task->getDue() ? $task->getDue()->format('Ymd\THis\Z') : null,
'wait' => $task->getWait() ? $task->getWait()->format('Ymd\THis\Z') : null,
'until' => $task->getUntil() ? $task->getUntil()->format('Ymd\THis\Z') : null,
'recur' => $task->getRecurring() ? $task->getRecurring()->getValue() : null,
],
$task->getUuid()
);
$params = [
'description' => $task->getDescription(),
'project' => $task->getProject(),
'priority' => $task->getPriority(),
'tags' => $task->getTags(),
'due' => $task->getDue() ? $task->getDue()->format('Ymd\THis\Z') : null,
'wait' => $task->getWait() ? $task->getWait()->format('Ymd\THis\Z') : null,
'until' => $task->getUntil() ? $task->getUntil()->format('Ymd\THis\Z') : null
];
if ($task->getRecurring()) {
$params['recur'] = $task->getRecurring()->getValue();
}
$this->taskwarrior->modify($params, $task->getUuid());
}
/**