Go to file
DavidBadura e532a95c14 update readme 2015-02-06 13:14:58 +01:00
src update readme 2015-02-06 13:14:58 +01:00
tests add project attr 2015-02-06 13:08:13 +01:00
.gitignore first draft 2015-02-05 20:41:03 +01:00
.travis.yml first draft 2015-02-05 20:41:03 +01:00
LICENSE Initial commit 2015-02-05 14:24:24 +01:00
README.md update readme 2015-02-06 13:14:58 +01:00
composer.json first draft 2015-02-05 20:41:03 +01:00
phpunit.xml.dist first draft 2015-02-05 20:41:03 +01:00

README.md

Taskwarrior

Build Status

$tm = \DavidBadura\Taskwarrior\TaskManager::create();

$task = new \DavidBadura\Taskwarrior\Task();
$task->setDescription('program this lib');
$task->setProject('hobby');
$task->setDue(new \DateTime('tomorrow'));

$task->addTag('next'); // todo :D

$tm->save($task);

$tasks = $tm->filter('project:hobby'); // one task

$tm->done($task);

$tasks = $tm->filter('project:hobby'); // empty