Feature: scheduled date

- Supports 'scheduled' date for tasks, which represent the earliest opportunity
  to work on a task.
- Added unit tests for urgency.
- Implemented color rule.
- Added scheduled to 'info' report.
- Updated assorted documentation.
- Removed comments in default rc because they are never seen.
- Added (broken) 'ready' report, which is like 'next' but only for ready tasks.
This commit is contained in:
Paul Beckingham 2012-05-13 17:19:22 -04:00
parent d08f189769
commit 98f215b1b5
17 changed files with 308 additions and 91 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 46;
use Test::More tests => 48;
# Create the rc file.
if (open my $fh, '>', 'urgency.rc')
@ -300,6 +300,16 @@ qx{../src/task rc:urgency.rc add 11a +TAG}; # task 43
$output = qx{../src/task rc:urgency.rc 43 _urgency};
like ($output, qr/urgency 18$/ms, '+TAG = 18');
# scheduled 0 (scheduled future)
qx {../src/task rc:urgency.rc add 12a scheduled:eom};
$output = qx{../src/task rc:urgency.rc 44 _urgency};
like ($output, qr/urgency 0$/ms, 'scheduled future = 0');
# scheduled 5 (scheduled past)
qx {../src/task rc:urgency.rc add 12b scheduled:yesterday};
$output = qx{../src/task rc:urgency.rc 45 _urgency};
like ($output, qr/urgency 5$/ms, 'scheduled past = 5');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data synch.key urgency.rc);
ok (! -r 'pending.data' &&